• MPL Help

    From Shitty@77:1/142 to All on Fri Apr 10 20:02:34 2020
    I'm not sure if many MPL people read this echo or not, but I've got a minor
    MPL issue that I need help with. Here's my code:

    If (Str = 'cancel') or (Str ='CANCEL') Then
    menucmd("GD", "goodbye.ans")
    menucmd("GI")
    Break;

    I'm trying to display goodbye.ans & then hangup the user if Str = cancel or CANCEL. I tried this, and I tried adding semicolons to the 2nd & 3rd rows, but either way, there's an error in compiling.

    Anything standing out?

    I realize we also have the "Programming" echo but I posted here since it's Mystic Programming Language I'm working with.

    Thanks.

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz:2323 (77:1/142)
  • From Shitty@77:1/142 to Shitty on Fri Apr 10 20:50:36 2020
    If (Str = 'cancel') or (Str ='CANCEL') Then
    menucmd("GD", "goodbye.ans")
    menucmd("GI")
    Break;

    Thanks anyway everyone - I got this working - my mistake was using double quotes instead of single.

    ..but I was still unable to "stack" those 2 commands together - I had to remove one, and use just one in order for it to work at all.

    What's the trick to getting both of those working together?

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz:2323 (77:1/142)
  • From xqtr@77:2/102 to Shitty on Sat Apr 11 17:42:56 2020
    If (Str = 'cancel') or (Str ='CANCEL') Then
    menucmd("GD", "goodbye.ans")
    menucmd("GI")
    Break;

    If upper(str)='CANCEL' Then Begin
    DispFile('goodbye.ans');
    menucmd('GI');
    end;

    --- Mystic BBS v1.12 A45 2020/02/18 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (77:2/102)
  • From Shitty@77:1/142 to xqtr on Sat Apr 11 10:44:12 2020
    If upper(str)='CANCEL' Then Begin
    DispFile('goodbye.ans');
    menucmd('GI');
    end;


    Awesome! Thank you!!

    --- Mystic BBS v1.12 A44 2020/02/04 (Linux/64)
    * Origin: Compufuck | Binghamton, NY | compufuck.xyz:2323 (77:1/142)