How to go to custom step in CC?

mat123pl

Client
Joined
May 20, 2011
Messages
13
Reaction score
0
Points
1
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
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);
}
 

mat123pl

Client
Joined
May 20, 2011
Messages
13
Reaction score
0
Points
1
Can I use this code for example in step1?
 

shinigami

Client
Joined
May 1, 2011
Messages
164
Reaction score
91
Points
0
Yes, you can do that by making Step2 and Step3 classes public
 

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)