CodeGen conditional statements
Hi All,
Not sure if this is the best place for this question (please advise if not), but is there any way to assign a ternary operator through the CodeGen interface? A model I am implementing essentially requires the step:
eqs = [Assignment(phi, phi_num),
Assignment(phi_adj, [conditional]), # Conditional should be -> (phi > 0.0) ? phi : 0.0;
.....
]
Any pointers in the right direction would be greatly appreciated.
Many Thanks!