What is the if conditional to do this?

i want to display a text/ads in forum id 1, 2, and 3 only