action = Action.SKIor without qualification, when the type of the enumeration can be inferred from the context:
action = SKIPTo check the value of an Enumeration, you can use the is operator:
if action is CANCEL then //Do something endor if you prefer, the multi-path conditional statement:
case action when SKIP then // Process SKIP when CANCEL then // Process CANCEL else // Handle all other values end