Pretty sure the comparison doesn't work with the @P there. It only can compare numbers.
Not sure why you have the "@P" + (1D2 + 3) part anyways. It's a static comparison, so you're always checking if the page ID is either 4 or 5, and doing nothing else with it.