VAR toggle and random number to display object

Hi there!

I need your help:
I want to display object, when random number is between let’s say a and b AND toggle VAR_1 = 1

So in opacity of that object I placed formula

$((rand(1, 3))=1)&&(#VAR_1#=1)?100:0$

but it is not working…

Can you help, please?

Hi Mate just tried it out you have way to many brackets in the formula try this
$(rand(1,3))=1&&#VAR_1#=1?100:0$

That should work fine

Thx! It is!
But, object blinks as random number gets new number every some miliseconds…
I wish to keep the product of random function.
Can that be stored in other VAR, like VAR_2?

edit:
I mean somehow to generate random number, check the condition I created (with dazstacey correction) and keep object on the screen UNTIL VAR_1 gets 0 again…

I don’t think your syntax is right here. It may work for the editor but the single ‘=’ is for setting values, not checking for equality. I know the language isn’t Javascript, but I’m certain it’s the same rules.

According to the official program manual for facer = and == are the same no difference at all. but i have noticed on some watch makes they prefer = not == so i stick with what works