A Conditional Action is a bit more complex than a Standard Action as it is able to evaluate whether a condition is true or false and act accordingly. To illustrate this capability, you will now turn the Mute button you created in the previous section into a toggle button. This means that you want your button to be able to do two entirely different things:
- First, it needs to be able to mute the audio and change the state of the Mute button to Active
- Second, it needs to be able to unmute the audio and change the state of the Mute button back to Normal
To choose which set of actions to perform, your button needs to evaluate whether a condition is true or false. In this example, you first need to verify whether the audio is currently on or off. This is what will decide which set of actions to perform.
You will now update the Standard Advanced Action you created in the previous section and make it a Conditional Action using the following steps:
- Still in the Chapter14...