We use “if then” compromises a lot with our strong willed oldest, but I don’t remember when he started understanding the concept!

Is an 18mo old enough to understand simple things (if you eat this bite, then you can have your sippy cup?) is he old enough to let tantrum until he does the thing or too young to know why I’m saying no?