asp classic - Better Way to Write ASP If Statement -


I have my statements in ASP and one of them looks like this:
 

If I Mod 120 = 0 or I Mod 124 = 0 or I Mod 128 = 0 or I Mod 132 = 0 or I Mod 136 = 0 or I Mod 140 = 0 or I Mod 144 = 0 or I Mod 148 = 0 or I Mod 152 = 0 or I Mod 156 = 0 or Mod 160 = 0 or I Mod 164 = 0 or I Mod 168 = 0 or I Mod 172 = 0 or I Mod 176 = 0 or Mod 180 = 0 then

Actually it uses the mod Four increasing from 120 to 180. There are no exceptions in this, I'm somewhat new to this and can not understand a more streamlined way to write this code. If I have such statements and figures, then it will make the code more readable and cleaner, if I can find an easy way to write it.

Thank you for your help! Block the loop through

for a statement

   

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -