Otwórz menu główne

Zmiany

Operatory

Dodane 172 bajty, 19:53, 27 paź 2019
m
stylistyczne, redakcyjne
'''Operatory''' służą albo do porównywania liczb(relacyjne) lub do urozmaicania formułowania jednocześnie wielu [[warunki|warunków]].
==Operatory relacyjne==
Operatory relacyjne służą do porównania liczb.:
*'''=''' lub '''is equal to''' - równe / takie samo
*'''!= | !>= | !<''' lub '''isn't''' - nierówne / inne niż
*'''<''' 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:
<pre>command /donate [<text>]: trigger:
if {kasa::%player%} >= 5000:
remove 5000 from {kasa::%player%}
send "Dziękujemy za donate!"</pre>
==Operatory logiczne==
Te operatory Operatory logiczne służą do jego urozmaicenia oraz skrócenia koduformułowania jednocześnie wielu [[warunki|warunków]].
*'''or''' - lub(jeden z warunków jest spełniony)*'''and''' - i(oba warunki są spełnione)*'''not''' - nie (warunek nie jestspełniony)
Przykład: