How to go to custom step in CC?

mat123pl

Client
Регистрация
20.05.2011
Сообщения
13
Благодарностей
0
Баллы
1
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
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
Регистрация
20.05.2011
Сообщения
13
Благодарностей
0
Баллы
1
Can I use this code for example in step1?
 

shinigami

Client
Регистрация
01.05.2011
Сообщения
164
Благодарностей
91
Баллы
0
Yes, you can do that by making Step2 and Step3 classes public
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)