SELECT / ACTIVE vs IF / ELSE
Written by Peter Stauber
Updated at January 13th, 2026
Table of Contents
Overview:
SELECT / ACTIVE vs IF / ELSE
SELECT ACTIVE vs IFs
Use SELECT/ACTIVES if you find you need to check multiple logical statements and find you need more than one IF ELSE. For example, instead of:
IF (<statement 1>)
{
do something
}
ELSE IF (<statement 2>)
{
do another thing
}
ELSE IF (<statement 3>)
{
do something else entirely
}
ELSE
{
do default thing
}
This SELECT/ACTIVE will run faster than the IF/ELSE's:
SELECT
{
ACTIVE (<statement 1>):
{
do something
}
ACTIVE (<statement 2>):
{
do another thing
}
ACTIVE (<statement 3>):
{
do something else entirely
}
ACTIVE (1):
{
do default thing
}
}
Related Videos
Table of Contents