M mat123pl Client Joined May 20, 2011 Messages 13 Reaction score 0 Points 1 Feb 16, 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 Joined May 1, 2011 Messages 164 Reaction score 91 Points 0 Feb 16, 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 Joined May 20, 2011 Messages 13 Reaction score 0 Points 1 Feb 16, 2012 #3 Can I use this code for example in step1?
shinigami Client Joined May 1, 2011 Messages 164 Reaction score 91 Points 0 Feb 16, 2012 #4 Yes, you can do that by making Step2 and Step3 classes public