& in variables values and switch operation

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
Hi, I have a function that needs to compare two lines of texts and I use switch to decide what to do if they are similar.

The issue that I have come across is that if the text in any of the compared variables contains "&" - the Switch doesn't do anything and gives me "Action not executed" alert.

Can it be bypassed anyhow? Or should I just use word processing and replace & in both variable values?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Standard Switch action works with strings with &
How to reprocude?
 

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
Waiting for another instance of this issue. Will post here asap.
 

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
Or, I think that it should work any way

Try putting this string

VariableA = It's all bits & pieces
VariableB = It's all bits & pieces

And in the switch, put this logic



And run it. It works perfectly when the compared strings don't contain "&" but breaks the process as soon "&" is in the way.
 

rostonix

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

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
"Debug thread error" is a bug) it's fixed for next build. it will work OK in ZennoPoster. This problem appears in PM only
 

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
Perfect! :-) Thanks a bunch as usual Rostonix!
 

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