instruction IF < EXP> then ....

hello 
how I can combine this instruction with the events for exemple if I have an event 5 so execute this trajectory
NB: the inputs and outputs belong to which type of data
thanks
 

SignalDI and SignalDO, respectively. Look for “change data type”.