Otwórz menu główne

Operatory służą albo do porównywania liczb(relacyjne) lub do urozmaicania warunków.

Operatory relacyjne

Operatory relacyjne służą do porównania liczb.

  • < lub is less than - mniejsze niż
  • > lub is greater than - większe niż
  • = lub is equal to - równe
  • >= lub is greater or equal to - większe lub równe
  • <= lub is less or equal to - mniejsze lub równe
  • != | !>= | !< lub isn't - nie jest

Przykład:

command /donate [<text>]:   
    trigger:
       if {kasa::%player%} >= 5000:
           remove 5000 from {kasa::%player%}

send "Dziękujemy za donate!"

Operatory logiczne

Te operatory służą do jego urozmaicenia oraz skrócenia kodu

  • or - lub
  • and - i
  • not - nie jest

Przykład:

command /ciastko [<player>]:
    trigger:
        if arg-1 is not online:
            send "Ten gracz nie jest online"
        else:
            if arg-1 is "Libter" or "bvcz":
                send "+1"