You can add conditional logic to the following functions:
However, you may notice that the expression editor for these functions is simple (it consists of only 1 dropdown):
This lesson will show you a workaround for building complex, multi-line expressions for these functions.
The trick is using an Expression Block to encapsulate your complex, multi-line expression into a single variable, and then using that single in the simple expression editor for these two functions.