SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
CASE evaluating a boolean

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
CASE evaluating a boolean
Author Message
Eric



Joined: 10 Jan 2005
Posts: 15

Post CASE evaluating a boolean Reply with quote

i have a isEqual statement returning a boolean..

then i call:

ChooseCase dbMatch, labelCase

case true
// do true

case false

// do false

this fails with a type mismatch error. dbMatch is dim'ed as a boolean value.. how can i accomplish this check? Does case ONLY evaluate non boolean values ?


Wed Jan 12, 2005 9:47 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: CASE evaluating a boolean Reply with quote

For boolean logic do it like

If dbMatch, YES, NO

YES:
// do true

Exit

NO:
// do false

You can also use IfThen
IfThen dbMatch, DO_MATCH
// do false
Exit

DO_MATCH:
// do true

: i have a isEqual statement returning a boolean..

: then i call: ChooseCase dbMatch, labelCase

: case true
: // do true

: case false

: // do false

: this fails with a type mismatch error. dbMatch is dim'ed as a boolean value..
: how can i accomplish this check? Does case ONLY evaluate non boolean
: values ?

Wed Jan 12, 2005 11:13 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.