database result and if logic

Schrimpkutter

Новичок
Регистрация
20.10.2014
Сообщения
7
Реакции
0
Баллы
1
Hello guys im from germany so my english is not that good :(
I found an thread here for connection c# to mysql. this works fine for me im doing a select and the result will be safed in a variable. my problem, i try to compare the result of mysql with an other variable with the if logic but everytime a bad end.

If looks like this:
"{-Variable.var_url-}"=="{-Variable.var_db_result-}"
First Variable is the url of a site and the second is the result of mysql.
If i make a new variable and put the content from {-Variable.var_db_result-} to it it works.

I hope someone has a tip for me :)
variables.jpg

This is the Code i found in the forum:
db_connect.jpg
 
"{-Variable.var_url-}"=="{-Variable.var_db_result-}" should return true/good if the variables are the same.
You sure no of the variables contains some white space? Like a line break, or space. Try to trim them.
 
You guys are right after the String escape it looks like this: 96WTM9ZX9C/\r\n so now i need to use regex to delete the unnecessary character ?
 
semms like you have invisible line break at the end.
use word processing - trim to variable
 
  • Спасибо
Реакции: Schrimpkutter

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