How can i execute both if and else block statements with a single condition.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjuscripts
    New Member
    • Aug 2007
    • 6

    How can i execute both if and else block statements with a single condition.

    I want to know is there any possibility of executing both if and else block statements with a single condition.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Not using the same if-else statement.

    You could, of course, write functions for the two parts and then use another if-statement to call both functions if the condition is true. The second if-startement might even be part of the first function.

    Comment

    Working...