Hey Paulo,
I just wanted to reply on your remark on the Visual Logic: "The only issue is that my timer runs manually through a widget and I can't get the actual value of the clock to work with the visual logic. In another words, the Timer is not "producing" the right value for the logic to work. When I change from clock widget to regular text and type in the values, it works. But not with the running clock. It doesn't recognize "10:00" as 10, "5:00" as 5, etc etc."
The reason is that in Visual logic a text is not always recognized as a number as you already pointed out.
The solution would be to extract the numbers from the clock value using the Mid String-block.
In this block you can then use the Index and Length properties to extract the data from your textfield which is linked to the widget.
So to give you an example:
10:00
index = 0, length = 2 => output = 10
index = 3, length = 2 => output = 00
But in order for this to work, you need to make sure that the output of the widget will always display two numbers for the seconds. So 08 instead of 8 otherwise, you will get wrong results.
To show you what I mean:
8:00
index = 0, length = 2 => output = 8:
index = 3, length = 2 => output = 0
while if you use
08:00
index = 0, length = 2 => output = 08
index = 3, length = 2 => output = 00
In my opinion the Visual Logic approach would be the easiest.
Best regards,
Kenneth
#XPression