Tuesday, November 29, 2011

Squishing onto a line: the colon :

Sometimes we need to reduce the human readability of our code. The colon will provides help to do this by letting we put multiple lines of ASP code onto a single line. Below is an example …..!! 



<%
Dim a
Dim b
Dim c
a=3 : b=25 : c=a-b : b=a*c : c=a*a-c+b : b=5*3*c*2/a
%>

No comments:

Post a Comment