ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#19046 - 11/25/07 07:55 PM How to simulate a else if statement
chewbarker Offline
newbie


Registered: 01/01/07
Posts: 23
I note that it is not directly possible to do an else if statement.

One way I propose it could be done is by:

if a=b then
...
jump to Line Y
if c=d then
...
Line Y

Is this the most appropriate way to simulate and else if statement.

Top
#19047 - 11/25/07 08:44 PM Re: How to simulate a else if statement [Re: chewbarker]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6548
Loc: Montreal, QC, Canada
Yes that's the best way. Internally, that is how higher level languages do it once compiled to machine code.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 72 anonymous users online.
Recent Posts
Shout Box

Newest Members
brigiel, vevevie, zhutree, 416, saiqul
3003 Registered Users
Forum Stats
3003 Members
19 Forums
3999 Topics
23425 Posts

Max Online: 132 @ 11/13/16 10:07 AM
June
Su M Tu W Th F Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30