#6185 [BUG] Nested conditionals
Issue created by
wild-endeavor
### Describe the bug
Can we get this to work in local execution?
conditional("single_task_in_conditional")
.if_(is_heads.is_true())
.then(
conditional("inner_nested_conditions")
.if_(evaluated_branch_id == "if_")
.then(calculate_circle_circumference(radius=evaluated_radius)) # this is executed when it should not be.
.elif_(evaluated_branch_id == "elif_1")
.then(calculate_circle_circumference(radius=evaluated_radius))
.elif_(evaluated_branch_id == "elif_2")
.then(calculate_circle_circumference(radius=evaluated_radius))
.else_()
.fail(RADIUS_NEGATIVE_ERROR)
)
.else_()
.then(echo_radius(radius=evaluated_radius))
...ideally without having to do ast parsing.
### Expected behavior
Nested conditional does not run if outer conditional is not true.
### Additional context to reproduce
No response
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte