1
Scripting Tutorials / Re: Repeat Until While
« on: October 14, 2014, 10:55:59 PM »
I've seen people put <> in their statements, I was just curious what they do.
When I use #targcurs
set #targcurs = 1
while #targcurs = 1
wait 2
set %bag #lobjectid
set #lobjectid #ltargetid
event macro 17
Thats actually almost all the code I am familiar with
But I was just curious.
Cervesas beer <> 0
and I thought I saw someone put
while #targcurs <> 1 or something close to it
If Cervesas beer < 0, OMG NO!
if it is > 0, GREAT!
But if its <> 0, I take it as maybe I'm drinking, maybe i'm not. Please help me understand.
When I use #targcurs
set #targcurs = 1
while #targcurs = 1
wait 2
set %bag #lobjectid
set #lobjectid #ltargetid
event macro 17
Thats actually almost all the code I am familiar with
But I was just curious.
Cervesas beer <> 0
and I thought I saw someone put
while #targcurs <> 1 or something close to it
If Cervesas beer < 0, OMG NO!
if it is > 0, GREAT!
But if its <> 0, I take it as maybe I'm drinking, maybe i'm not. Please help me understand.