Summary
The user is inquiring about the use of sensors or agents with a conditional statement, suggesting it could function like a task that assigns a value from sensing and checks it within a conditional block. They recognize that this is feasible if the agent task returns a value but mention they haven't seen this specific use case before. They provide an example where a Sensor's poke
method returns a bool
, implying that this should work.
blaketastic2
If I use a Sensor as an example, the poke
method is returning a bool
so that should be fine?
eric901201
yes, it's doable if it return the agent task return a value
blaketastic2
has anyone used sensors/agents w/ conditionally
? I'm assuming it's just like a task where we would say val = sensing(...)
and then check val
in the conditional block?
eric901201
yes it's ok
eric901201
But I didn't see the usecase before