question

xmac avatar image
xmac asked xmac posted

IF statement not executing even if its TRUE

Ok so Im getting a value from GUI in a web session, and then storing it in a variable. Then Im comparing it with a parameter  and if the its equal, I do some actions.

My problem here is even thought both the variables match, the IF statement is not executing. Here is the screenshots showing the values of two variable which are equal.

ver.jpg

 

This is for $ver  and below is for $version  whoes values are same

 

version.jpg

 

 

Here in the screen shot you can see the IF statement which is not executing even if thse are same values.

I dont understand what is going on. Please help .

iTest
ver.jpg (128.0 KiB)
version.jpg (144.0 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
YujieL avatar image
YujieL answered YujieL posted

Try inspecting the variable values in the Data View. This view contains all local, global variables and parameters.  Sometimes the Response view shows that the value is the same, but the variable could be a value in an array instead of a plain string, but it all looks the same from the response view.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.