Sign in to follow this  
Followers 0
Medic873

Do Until Dosnt Equal

5 posts in this topic

Okay here is my issue. i want to use the do until function

so

do

until $Answer *Dosnt Equal 3

how do I use dosnt equal instead of dose equal.

Share this post


Link to post
Share on other sites



Like this

Do 

Until $Answer <> 3

Or alternatively

Do 

Until Not ($Answer = 3)

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

Im still confused

Like this

$i = 1

Do

$i = $i + $i

msgbox (1, "Number", $i);

until <> $i = 1

Share this post


Link to post
Share on other sites

This is the example under Help-> Do-Until. I have changed very little:

$i = 0
Do
    MsgBox(0, "Value of $i is:", $i)
    $i = $i + 1
Until $i <> 1

A bit more reading will definitely help - always.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0