Error in "if" logical operator

smartwebdev

Новичок
Регистрация
13.12.2016
Сообщения
1
Благодарностей
0
Баллы
1
Hi there.
So, yesterday I created a project. In general, it is not very difficult
Login to vk via web form. Go to the mobile version. From the list we take the link to go to private messages in the mobile version for a specific user, and here it is important. I need to understand - who last wrote the message and with what text.





If the text and the sender - for example Svetoyara and the text of the last message is "На данный момент я партнер компании Pride International и франчайзи "Генетик-Тест" (тестирование врожденных способностей по отпечаткам пальцев)
"


so we must continiue send messages
There is module for continiue sending messages.



So i need to check, is last message sented by "Svetojara"
ok, i created Logic IF and write {-Variable.WhoWriteLast-}=Светояра
But thats doesnt work.
and if i create variable with content Светояра
and again create Logic IF {-Variable.WhoWriteLast-}={-Variable.IsSvetojaraLast-}

and thats again doesnt work, for better understanding i will attach my template to this post, hope it will be helpfuel.
Thanks a lot.
 

Вложения

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113
Hello.
Please know that to compare strings You have to use quotes 'variableTesting'=='OtherVariable'

And also Please check https://www.w3schools.com/js/js_operators.asp and
JavaScript Comparison Operators

Those will be operators You can use.

Cheers
 

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