C Cyrix Client Регистрация 16.12.2011 Сообщения 390 Благодарностей 11 Баллы 18 23.07.2014 #1 Is there a way to check if a string contains a substring? For example, f(abcde,bc) returns 1, f(abcde,cb) returns 0. Thanks.
Is there a way to check if a string contains a substring? For example, f(abcde,bc) returns 1, f(abcde,cb) returns 0. Thanks.
C Cyrix Client Регистрация 16.12.2011 Сообщения 390 Благодарностей 11 Баллы 18 23.07.2014 #2 I use this C# code return project.Variables["V"].Value.Contains("bc"); But it returns a True/False Boolean variable (say N). How to do the IF for this Boolean variable? I tried {-Variable.N-}==True in a IF block but it always routes to the failed branch even when N is True. Последнее редактирование: 23.07.2014
I use this C# code return project.Variables["V"].Value.Contains("bc"); But it returns a True/False Boolean variable (say N). How to do the IF for this Boolean variable? I tried {-Variable.N-}==True in a IF block but it always routes to the failed branch even when N is True.
bigcajones Client Регистрация 09.02.2011 Сообщения 1 216 Благодарностей 683 Баллы 113 23.07.2014 #3 It's a string. '{-Variable.N-}'=='True' Реакции: huangxiangcai_old и Cyrix