How to manage with mod

How to manage with mod

Return to topic list

Wed Mar 23 11:21:21 2022   by   AAa4
Hi,

I'm trying to make a repeat statement. I want it to repeat the sum 12d6 if the sum is a multiple of 7.
So I was thinking of using mod, and to write something like:
repeat x :=sum 12d6 until x =/=  0 mod 7

But it doesn't work. Am I using the mod function incorrectly?

 
Wed Mar 23 13:33:34 2022   by   Torben
You can write (x mod 7) =/= 0 instead.
 
Wed Mar 23 14:48:56 2022   by   AAa4
Thank you !
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list