switch – Talk

From Bohemia Interactive Community
Revision as of 20:40, 19 July 2007 by BarmyArmy (talk | contribs) (Feature Request:)
Jump to navigation Jump to search

switch is case sensitive when comparing strings! switch (primaryWeapon player) do { case "m4gl": {hint "never work since primaryweapon returns M4GL"}; }; --Doolittle 06:25, 18 July 2007 (CEST)

Feature Request:

the ability to drop through cases something like below:

switch( rank ) {

case "General": case "Major": case "Colonel": { hint "An officer and a gentleman"; };

case "Sergant": case "Leutenant": { hint "NCO"; };

default: { hint "cannon fodder"; }; }

BarmyArmy