(08-08-2024, 08:53 PM)Pete Wrote: I look at it as shorthand...
C=(A>B)?A:B;
meaning:
If A > B Then C = A Else C = B
Pete
Yeah @a740g if that is the Ternary then it's the more familiar (to me at least)
IFF as in IFF(expression, ReturnThisTrueValue, ElseReturnThisValue)
ServeBeverage$= IFF$(age>=18, "Beer," "Juice")
and maybe not so popular in QB64 land because you have to Type the function returns.
b = b + ...