(06-05-2023, 05:06 PM)CharlieJV Wrote:OK not javascript crap ;-))(06-05-2023, 05:01 PM)bplus Wrote:(06-05-2023, 04:53 PM)CharlieJV Wrote: Huh, and now I'm also incorrect.
Just tried, and:
If the first expression is a null string, then FALSE expression happens..
If the first expression is a non-null string, then TRUE expression happens.
This has me thinking: potential use cases?
Ooooooo:
Code: (Select All)IFF( name$, name$, "Guest")
Hi Charlie, could you show me a quick copy of BAM code for IFF? or are you using some Javascript jazz?
BAM does not do javascript, and I can't ever see me allowing BAM to do javascript. New BASIC statements/functions that might not exist in other BASIC implementations, and often non-strict typing, but no javascript crap.
I was just wondering how you have IFF( ) coded for BAM, interesting that it allows both string and I assume numeric expressions for first parameter.
Nevermind, I guess you went over all this at beginning of thread. I was surprised BAM not sticking strictly to types.
b = b + ...