Home   Help Search Login Register  

Author Topic: Question about EH and Scripts  (Read 4831 times)

0 Members and 1 Guest are viewing this topic.

Offline Denisko-Redisko

  • Members
  • *
Re: Question about EH and Scripts
« Reply #15 on: 25 Mar 2011, 08:14:18 »
Quote
Interesting - I was merely referencing Suma's comment about it being undefined when used outside of a loop... but then your reference would seem to counter that, anyway.
Oh, sorry   :confused:
but nevertheless:
Code: [Select]
_var = _k call {
    if (_this == 1) exitwith { "a" };
    if (_this == 2) exitwith { "b" };
    if (_this == 3) exitwith { "c" };
    "d" // default value
}
« Last Edit: 25 Mar 2011, 08:16:16 by Denisko-Redisko »
sorry for my english