BAM thingies in the works
#16
(Added a link to test version of BAM in the OP.)

Here's a sample use case and test program for BETWEEN, CHOOSE, and IFF:

Code: (Select All)
' Test BETWEEN, CHOOSE, IFF

hour$ = left$(time$,2)

again:
    language%=_PROMPT("Select your preferred language:" + chr$(13) + chr$(13) + "1 -> English, 2 -> Francais, 3 -> Espanol." + chr$(13) + chr$(13) + "Or Cancel to end." , "" )

    IF NOT BETWEEN( language%, 1, 3 ) THEN END

    _Greeting:
        PRINT IFF( BETWEEN( hour$, 0, 11 ), _
                   CHOOSE( language%, "Good Morning", "Bonjour", "Buenos Dias" ), _
                   IFF( BETWEEN( hour$, 12, 4), _
                        CHOOSE( language%, "Good Afternoon", "Bon apres-midi", "Buenas Tardes" ), _
                        CHOOSE( language%, "Good Evening", "Bonsoir", "Buenas Noches" ) ) )

    _delay 3
goto again                           
Reply


Messages In This Thread
BAM thingies in the works - by CharlieJV - 06-03-2023, 03:36 AM
RE: BAM thingies in the works - by grymmjack - 06-03-2023, 10:16 PM
RE: BAM thingies in the works - by CharlieJV - 06-03-2023, 10:52 PM
RE: BAM thingies in the works - by mnrvovrfc - 06-03-2023, 10:22 PM
RE: BAM thingies in the works - by CharlieJV - 06-03-2023, 10:36 PM
RE: BAM thingies in the works - by CharlieJV - 06-06-2023, 08:47 PM
RE: BAM thingies in the works - by vince - 06-07-2023, 02:50 AM
RE: BAM thingies in the works - by CharlieJV - 06-07-2023, 04:12 AM
RE: BAM thingies in the works - by CharlieJV - 06-07-2023, 04:23 AM
RE: BAM thingies in the works - by mnrvovrfc - 06-07-2023, 08:45 AM
RE: BAM thingies in the works - by CharlieJV - 06-07-2023, 12:18 PM
RE: BAM thingies in the works - by CharlieJV - 06-07-2023, 09:12 PM
RE: BAM thingies in the works - by vince - 06-07-2023, 08:21 AM
RE: BAM thingies in the works - by bplus - 06-07-2023, 03:19 PM
RE: BAM thingies in the works - by vince - 06-07-2023, 05:28 PM
RE: BAM thingies in the works - by CharlieJV - 06-08-2023, 08:36 PM
RE: BAM thingies in the works - by CharlieJV - 06-10-2023, 11:47 PM
RE: BAM thingies in the works - by CharlieJV - 06-24-2023, 03:51 AM
RE: BAM thingies in the works - by CharlieJV - 06-24-2023, 04:07 AM
RE: BAM thingies in the works - by CharlieJV - 06-24-2023, 04:53 PM



Users browsing this thread: 6 Guest(s)