big-notebook-82371
01/09/2024, 10:20 PMconditional
question. Is there a way to resolve a result from a conditional, but only if its true? Something like this:
result = ""
result = conditional("cond").if_(<conditional statement>).then(run_task()).else_().then(result)
Obviously this is a bit contrived, but is there a way to use a conditional like a single if, rather than having to run a different task if its not true? If that makes sensetall-lock-23197
big-notebook-82371
01/10/2024, 3:21 PMelse_
runs, it can assign the variable a default value, if that makes sense. So a task would only run if the condition is true, and if the task doesn’t run, the output of the conditional could be a default value