Reference Error: int is not defined

Hello,

In my experiment I have a loop that is only some of the time, other times it is skipped. In the nReps box of that loop, I have used int(conditional) and then in the routines before the loop I have custom code that tells the program when the conditional variable is True or False. This has worked great for me in the past with in person testing, however it doesn’t seem to work in pavlovia. As I get an error saying “ReferenceError: int is not defined”
So I am looking for an alternative method, or a JS approved way to define int. Any advice is much appreciated!

Thanks

There seem to be many ways to do this: 5 ways Convert Boolean to Number / Integer in JavaScript - Codepedia