if (condition) { some code that you do sometimes return 1; } else { code you do at other times }