Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does QB64pe already have a function like IFF ?
#19
(06-05-2023, 05:06 PM)CharlieJV Wrote:
(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.
OK not 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 + ...
Reply


Messages In This Thread
RE: Does QB64pe already have a function like IFF ? - by bplus - 06-05-2023, 05:15 PM



Users browsing this thread: 2 Guest(s)