2 Replies Latest reply: Jan 22, 2013 11:18 AM by ALEXEY VOYTSEKHOVSKIY RSS

    Interesting behavior of IF

      if I write in my loading script:

      if(1=1,  "MyDateTimeField")
      as _wojzehDateTime,

      then I get:

       

      if_date_1.png

       

      if I add the second argument:

      if(1=1,  "MyDateTimeField", null())
      as _wojzehDateTime,

      or

      if(1=1,  "MyDateTimeField",0)
      as _wojzehDateTime,

      or

      if(1=1,  "MyDateTimeField", '')
      as _wojzehDateTime,

       

      then I get:

       

      if_date_2.png