![]() |
|
#1
|
|||
|
|||
If...elseIf(cond1) then
stat1 stat4 elseif(cond2) then stat2 stat4 elseif(cond3) then stat3 stat4 endif Query: if cond1 satisfies,stat1 and stat4 has to execute,if cond2 satisfies,stat2 and stat4 has to execute......... i dont want to write stat4 in each and every condition.if i write stat4 out of if...else stat(i.e after endif),even any of these conditions wont satisfy,stat4 executes.... stat4 has to be execute only wen any one of the conditions satisfy....so wats the solution... |
|||
|
#2
|
||||
|
||||
Re: If...elseCode:
__________________
During the election they said Obama could only be elected when pigs fly. Well, we currently have an epidemic of Swine Flu. Coincidence? |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The