Solved How to find out if {_a} is a multiple of 10

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Nick

New Member
Jan 27, 2017
8
0
1
Anyone know how i could find out if a number is a multiple of another number?

For example every time a player earns 10 gold he will receive a bonus

Using java you would do something like this

int a = 20;

if (a % 10 == 0) {
# A is a multiple of 10
}

Thanks.
 
use if mod({_a}, 10) = 0
 
Status
Not open for further replies.