Executing single if statement if in Handler having many ifs

HI

I have created a function
in that i have 10 if statements ,
if i pass a value "5" that should execute only if condition 5 with out verifying other if conditions and exit function
if i give value "all" it should execute all 10 if conditions

ex:
to handerxxxx i
if i=1
end if

if i=2
end if

if i=3
end if
.
.
.
..

end handlerxxx

Comments

  • EggplantMattEggplantMatt ForumAdmin admin
    I think the best way to handle this is to add an "or" condition to each if:
    to handerxxxx i
    if i=1 or i=all
    end if
    
    if i=2 or i=all
    end if
    
    if i=3 or i =all
    end if
    
Sign In or Register to comment.