1 Reply Latest reply on Mar 19, 2010 2:02 PM by Pappa_John

    How do I do an "immediate if"

    Jerry62712 Level 1

      This:

      var test:boolean;

      if (x = 1)

        test = true;

      else

        test = false;

       

      can be written on one line with something like test = (x?1:true,false); but I'm not sure of the syntax. Anyone know the proper syntax?  What I want to do is convert an array ("No", "Yes") to a boolean.