How do we transition / navigate to another node based on the condition satisfy using script?