i need to compare 2 variables

fredzenno

Пользователь
Регистрация
27.01.2013
Сообщения
48
Благодарностей
1
Баллы
8
hi, i a new utilisateur of zenno, and i need to compare to variables

to compare two variables to see if it contains an expression. I tested
but is dont works.


i (if)
'{-Variable.texte-}'!='{-Variable.lesconcours-}'

have you a idea ?
 
Регистрация
02.07.2010
Сообщения
387
Благодарностей
101
Баллы
43
"{-Variable.texte-}" == "{-Variable.lesconcours-}"
 

fredzenno

Пользователь
Регистрация
27.01.2013
Сообщения
48
Благодарностей
1
Баллы
8
"{-Variable.texte-}" == "{-Variable.lesconcours-}"
== is a equal not ?
a need to content !=

i read my file. and put the text in a variable. for exemple my variable is :

variable.concours is:
Conseils
Concours
document.title=('LE BIEN PUBLIC');
- LE BIEN PUBLIC CRéATIF /

-------------
Conseils
Concours
document.title=(voici le test);
- voici le test /



variable.test is :
document.title=('LE BIEN PUBLIC');

i need to compare if variable.concours content variable.test
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
I'm not sure if I got you, but it seems you wanna check if one variable contains another one. You can use for that word processing-regexp.
 

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