Using conditions to control the actions graphs