M mat123pl Client Регистрация 20.05.2011 Сообщения 13 Благодарностей 0 Баллы 1 16.02.2012 #1 how to get this result ...? PHP: if(attribute.Contains("Text for check here")) { //go to step2 } else { //go to step3 }
how to get this result ...? PHP: if(attribute.Contains("Text for check here")) { //go to step2 } else { //go to step3 }
shinigami Client Регистрация 01.05.2011 Сообщения 164 Благодарностей 91 Баллы 0 16.02.2012 #2 Where do you call this code from? You can simply make: JavaScript: if(attribute.Contains("Text for check here")) { Step2.Execute(instance); } else { Step3.Execute(instance); }
Where do you call this code from? You can simply make: JavaScript: if(attribute.Contains("Text for check here")) { Step2.Execute(instance); } else { Step3.Execute(instance); }
M mat123pl Client Регистрация 20.05.2011 Сообщения 13 Благодарностей 0 Баллы 1 16.02.2012 #3 Can I use this code for example in step1?
shinigami Client Регистрация 01.05.2011 Сообщения 164 Благодарностей 91 Баллы 0 16.02.2012 #4 Yes, you can do that by making Step2 and Step3 classes public