Notifications
Clear all

[Closed] wait till function will return value

Due to the simplest things are the most difficult so I have hard nut to crack.
Is it possible to make maxscrcipt wait until function will return some value. The problem is, max evaluate code one line by time and check current value however my function have interface and value I`m waiting for is up to what user will choice(function it self have ui). So my code have to wait before some value will be achieved and then code should evaluate on . I think it should look something like:

value=0
(call my function)myfunction value; wait till myfunction value>0, if myfunction value>0 then go on
I’m appreciated for any clue.