- If E then I would take action A
- If not E then I would take A also
- However when the outcome of (E vs not E) is undetermined, hesitate from action A.
Does anyone know a real world example of such a situation?If I knew that the volcano is going to erupt, then I would drive to the airport (with all my belongings, and leave).
If I knew that the volcano on my island is not going to erupt this month, then I would drive to the airport (to go on a package holiday that I had planned).
However, if the outcome is undetermined, I might prefer to cancel my holiday (I would not enjoy it while worrying about all my stuff potentially being destroyed in a fiery inferno) and wait to see what happens. So I should hesitate from driving to the airport.
If (volcano_status == GONNA_BLOW)
pack_everything_and_run();
else if (volcano_status == NO_WORRIES)
pack_suitcase_and_leave_for_holiday();
else if (volcano_status == UNKNOWN)
cancel_holiday();if (volcano_status == GONNA_BLOW) refuel_car(); else if (volcano_status == NO_WORRIES) refuel_car(); else if (volcano_status == UNKNONW) nop();
then later
if (volcano_status == GONNA_BLOW) pack_everything_and_run(); else if (volcano_status == NO_WORRIES) pack_suitcase_and_leave_for_holiday(); else if (volcano_status == UNKNONW) call_to_cancel_holiday();
Then refueling the car is definitely the same action, even if it's followed by different actions later on.
action(x) = a if x
Does action(x) not just equal a?