startAction(Actions["some action name"])
while Conditions["action_ended"].ConditionValue == false do
if Conditions["action_ended"].ConditionValue then
break
end
end
...some more code which gets execuded when action_ended is TRUE