iif is vBulletin's custom function that acts just like the ternary statement.
PHP Code:
$foo = iif($bbuserinfo['userid'], 42, 0)
Is the same as:
PHP Code:
$foo = $bbuserinfo['userid'] ? 42 : 0;
That is the same as:
PHP Code:
if ($bbuserinfo['userid'])
{
$foo = 42;
}
else
{
$foo = 0;
}
Why they made it, I don't know. They've probably mentioned it on vBulletin.com.
@David, post several lines above and below 166.