Big honkin' IF statement.

Bluevoss
Anticipating 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
1.) One 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
Okay, 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.

This topic is now closed. Topics are closed after 180 days of inactivity.

Support

Forums