If-Then code for capstone