Skip to content

Scripter Modulo function in 13.0.0 not working #19283

Closed Answered by martin072
martin072 asked this question in Q&A
Discussion options

You must be logged in to vote

Disregard. To fast with the question, seems to be something strange in the script.

if upsecs%600==0 or bt==1 {
 print every 10min
 bt=0
}

does not seem to work and is fired every second because bt=0 is not executed.
Apparently the OR statement needs to be on a newline;

if upsecs%600==0 
or bt==1 {
 print every 10min
 bt=0
}

Works Ok.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martin072
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant