LDA myValue CMP #3 BNE .skip ;if we got to here, "myValue == 3" evaluated to true. LDA myOtherValue CMP #5 BNE .skip ;if we got to here, both "myValue == 3" and "myOtherValue" == 5 evaluated to true. STA myResult ;any nonzero value is considered TRUE, so we've stored 5 into myResult. .skip: