MrBonkBot
  • Getting started
  • Features
    • Blacklist
    • Banlog
    • Syncgame
    • Economy
      • Commands
  • Commands
    • Basics
    • System Commands
      • Counters
    • Variables
      • Condition
Powered by GitBook
On this page
  • How it works
  • Examples

Was this helpful?

  1. Commands
  2. Variables

Condition

Some math inside

How it works

You can use many variables combined, randomnumber doesnt work currently!

condition ? true : false

All infront of ? is the condition Between ? and : is the true statement After : is the false statement

Options:

= > match (not allowed in the false or true statement)
| > or (limited to 1, not allowed in the false or true statement)
& > and (limited to 1, not allowed in the false or true statement)

Examples

> meal mittags
Lunchmeal: %condition%%target%=mittags?insert=kartoffelpüree:insert=Schweinebraten
%condition%mittags=mittags?insert=kartoffelpüree:insert=Schweinebraten 
> kartoffelpüree
> meal lunch
Lunchmeal: %condition%%target%=mittags|%target%=lunch?insert=kartoffelpüree:insert=Schweinebraten
%condition%lunch=mittags|lunch=lunch?insert=kartoffelpüree:insert=Schweinebraten
> kartoffelpüree
> meal lunch
Lunchmeal: %condition%%target%=mittags&%game%=Cooking?insert=kartoffelpüree:insert=Schweinebraten
%condition%lunch=atlos___?insert=kartoffelpüree:insert=Schweinebraten
> Schweinebraten
  • Instead of "insert=", you can just type "true" or "false", which will prevent the response from beeing send

  • | or & are limited to one, more will not work

  • dont hit your spacebar, write underscores ("_") Grand Theft Auto V -> Grand_Theft_Auto_V

  • If you want to match something with a target, write it in lowercase %target%=Flo -> %target%=flo

PreviousVariables

Last updated 4 years ago

Was this helpful?