Compare string in array with var....

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
brahama
Newbie
Posts: 4
Joined: Thu Apr 26, 2007 2:28 am

Compare string in array with var....

Post by brahama » Tue May 01, 2007 6:43 pm

Hi, I am trying to compare the the string i stored in array[1] with var temp..

IF>array[1]=temp then
code
ENDIF

is this correct??
i am also trying to visualiza the content of an array to see the content of the current counter and the previous one..

let>b=c
sub>b,1

messageModal>array[%b%]
messageModal>array[%c%]


thanksss

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue May 01, 2007 6:45 pm

Do this:

Let>tmpStr=array[%k%]
MessageModal>tmpStr

And

Let>tmpStr=array[%k%]
If>tmpStr=temp
...
Else
...
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

brahama
Newbie
Posts: 4
Joined: Thu Apr 26, 2007 2:28 am

Post by brahama » Tue May 01, 2007 7:35 pm

Great...thanxs for your quick response...
it works great.....

Regards,

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts