Skip to content
GavriYashar edited this page Jan 10, 2019 · 1 revision

Simple function to create one line if statements.

usage example

Typically you would write something like this:

  if foo == bar
     var = "something";
  else
     var = "something else";
  end

iif shortens it to:

  var = iif(foo == bar, "something", "something else");
Clone this wiki locally