Hi everyone,
I've been wanting to make a simple conditional branch where I would check if a variable is even or odd.
At first I was thinking it wouldn't have been a big deal, as I could simply check if the variable can be divided by 2 and check the result.
Then I realized there's no basic option in the conditional branch for that (unless I missed something major), and I would have needed a script call.
I know nothing about scripting, but I was assuming someone might have had the same problem - and yet I found nothing, except for this thread, which I couldn't make it work in the slightest - partially because knowing next to zero scripting, so I have no idea if it's related or not and if it is how to rewrite the code suggested to have a variable check.
In short, I just need to know what script call code I can use in a conditional branch to quickly check "Is the number even? Do this. / It's not even? Then it's odd and do this."
thanks in advance!
I've been wanting to make a simple conditional branch where I would check if a variable is even or odd.
At first I was thinking it wouldn't have been a big deal, as I could simply check if the variable can be divided by 2 and check the result.
Then I realized there's no basic option in the conditional branch for that (unless I missed something major), and I would have needed a script call.
I know nothing about scripting, but I was assuming someone might have had the same problem - and yet I found nothing, except for this thread, which I couldn't make it work in the slightest - partially because knowing next to zero scripting, so I have no idea if it's related or not and if it is how to rewrite the code suggested to have a variable check.
In short, I just need to know what script call code I can use in a conditional branch to quickly check "Is the number even? Do this. / It's not even? Then it's odd and do this."
thanks in advance!