Visual Basic programmers have a function at their disposal called IIf(), which is an abbreviation for Immediate If.
result = IIf(2 + 2 = 5, "Correct", "Wrong")
The iif() function is sometimes more convenient than a full-blown if...then...else... control structure. Oddly enough, the function does not exist in VBScript.
Our PHP programmer friends have a superior equivalent, the ternary operator.
$result = (2 + 2 = 5) ? 'Correct' : 'Wrong';
Unfortunately we can't recreate the ternary operator in ASP, but we can recreate the iif() function.
function IIf(expression, truecondition, falsecondition)
if cbool(expression) then
IIf = truecondition
IIf = falsecondition