A little trick with the "extends" keyword

[quote=204516:@Dave S] return IF(b,1,0)[/quote]
Yeah, that works if you’re using a recent Xojo version, which I don’t :wink:

I really hate it that it’s not been named “iff” as it’s been done in other languages. That would have even made it possible to keep it backward compatible. Sigh.