Repeat set_task until a variable is true
Hello,
I have problems implementing a set_task, which gets repeated as long as a variable is false. This was what I tried first: Code:
public func1(id, opid) {Then I tried this: Code:
public func1(id, opid) {The variable "status" is false when calling func1() and gets true in a specific event. The task should be repeated as long as status is false. I can't get it why my attempts are unsuccesfull for this. |
Re: Repeat set_task until a variable is true
Your second attempt is ok, but there is a small error:
Code:
Should be: Code:
|
Re: Repeat set_task until a variable is true
You are getting stuck in an infinite loop here:
Code:
while (status == false) { |
Re: Repeat set_task until a variable is true
@vitorrd: That was it. Thanks!
|
Re: Repeat set_task until a variable is true
Quote:
|
Re: Repeat set_task until a variable is true
If func1 is also a task, see in TASK_func2 how you pass function params and in which order.
PHP Code:
You can also set a looping task, and stop it when status is true : PHP Code:
|
| All times are GMT -4. The time now is 22:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.