How to create condition for test result ==passed

For conditionally executing test cases you might be interested in robotframework-dependencylibrary.

There are also some automatic variables that could be useful, such as ${PREV TEST STATUS}