Help please I don’t understand this error


Hi, I’m new to Kodular and I keep getting this error when I try to test my app. Thanks in advance for your help.

Hi dear,

Welcome to the Kodular community!

taking a quick look I noticed two things that could cause problems.

  • GetValue, if it doesn’t find the value, returns valueIfTagNotThere = 0, so if the tag isn’t found the condition becomes if 0, but if expects either true or false.
    So either you check if GetValue <> 0,


    or you set valueIfTagNotThere to false so that if the tag isn’t found it goes to the else branch.

  • Also, in the Clock.Timer you’re subtracting Clock.Now from global_End_Time,
    Clock.Now must be converted to milliseconds.
    blocks(122)