In the following, someFunc() is called if someCondition() is true or if it is
false (ie on both if and else paths)
{{{
transition if someCondition() then {
do someFunc()
} select STATE2
else select STATE
}}}

Adding an empty or actual else program corrects the behaviour. This works as
intended.
{{{
transition if someCondition() then {
do someFunc()
} select STATE2
else {
do someOtherFunc()
} select STATE
}}}

And this works as intended.
{{{
transition if someCondition() then {
do someFunc()
} select STATE2
else {
} select STATE
}}}