Testing if variable exist

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
Hi!
I'm trying to use this code in an IF
'{-Variable.NewPassword4-}'!=''
and NewPassword4 is g36FjvA21V.
but when I'm running it, it gives shows in the Logs: "Result: " instead of true/false
does anyone know what's causing it?

while in debugging when I'm looking into the IF, I see this:
'g36FjvA21V

Thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18
I know, I've tested it already several times, but it doesn't seem to work.
The IF action is used to check if the variable (that was regexed from the Email Action) exist.
I'm pretty sure that the problem is connected somehow to the fact that the variable is created in the email action.
In the email action I take several variables using Regex, and while checking if the other variables exist it shows FALSE, as I wanted, but only with this one that is supposed to show TRUE, it shows "Result: "
I really don't know how to fix it or what might cause it.
is it possible that the variable isn't string and that's why the IF isn't working correctly and showing in debug mode
'g36FjvA21V
?

I hope you understand the questions,
Thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 719
Баллы
113
If you want you can upload template. Will check.
It's hard to guess blindly.
 

hotohori

Client
Регистрация
10.02.2012
Сообщения
154
Благодарностей
40
Баллы
28
Try double quote

"{-Variable.NewPassword4-}"!=""

and see if i works.
 

muchink

Client
Регистрация
28.07.2012
Сообщения
193
Благодарностей
6
Баллы
18

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