Home   Help Search Login Register  

Author Topic: if in then/else  (Read 506 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
if in then/else
« on: 25 Nov 2004, 15:29:49 »
Is there someway to pop up a if statement in a then/else line? So it'll be a if-then-if-then-else-else statement. I suspect not but I would be glad if there was.

:beat: *Gets Shot* :beat:

Unnamed

  • Guest
Re:if in then/else
« Reply #1 on: 25 Nov 2004, 17:03:17 »
You mean something like this?

Code: [Select]
If (_Condition1) Then {If (_Condition2) Then {Call DOThis} Else {Call DoThat}}
Works for scripts with as many if then Else combinations as you want, as long as its all on one line. But with sqf functions you dont have to worry about that.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:if in then/else
« Reply #2 on: 25 Nov 2004, 17:06:05 »
Will try that out. Cheers! :)

:beat: *Gets Shot* :beat: