ZulfadlyAshBurn Posted May 12, 2020 Share Posted May 12, 2020 How can I do this? 1 = 1 2 = 2 3 = 3 4 = 4 5 = 5 And the value will reset after 5 meaning 6 = 1 7 = 2 8 = 3 9 = 4 10 = 5 So when I call a function as pass 9, it will return me 4. Quote Link to comment Share on other sites More sharing options...
kicken Posted May 12, 2020 Share Posted May 12, 2020 You want the Modulo operator. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.