Big honkin' IF statement.
Bluevoss
24 May 2016, 13:06Anticipating a game with a big involved if statement. Is there a way to do an else if in Squiffy? So far, all I could figure out is a kludgy layered if statement which will get very confusing very quickly.
@set x=3
{if x=1:
its a 1
}
{else:
{if x=2:
its a 2
}
{else:
nuttin...
}
}
TyCamden
24 May 2016, 16:251.) One option:
2.) Another option:
@set x=3
{if x=1: its a 1}
{if x=2: its a 2}
{if x=3: its a 3}
2.) Another option:
@set x=3
{if x=1:[[1]]}
{if x=2:[[2]]}
{if x=3:[[3]]}
[[1]]:
its a 1
[[2]]:
its a 2
[[3]]:
its a 3
Bluevoss
24 May 2016, 17:01Okay, thanks for the answers, guys. I just wanted to make sure I wasn't going to go this way if there was an easier solution.