Hi all,

Im trying to create an if statement that would be able to do the following:

Code:
	if (($x == 1) or ($x == 6) or ($x == 11) or ($x == 16) or ($x == 21)){
and
Code:
	if (($x == 5) or ($x == 10) or ($x == 15) or ($x == 20) or ($x == 25)){
However, is there any way of creating an easier if statement as I wish the value f $x to eventually reach much higher numbers (say 1,000) and I do not want to have to keep adding to each of these if statements.

Any ideas?