gsc123
Programmer
- Jan 24, 2008
- 197
How would I convert this statement to asp?
return ((num >= 0)&&(num < 10))?"0"+num:num+"";
return ((num >= 0)&&(num < 10))?"0"+num:num+"";
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If (num >=0 And num < 10) Then
[b][red]functionname[/red][/b] = "0" & num
Else
[b][red]functionname[/red][/b] = num
End If
function iif(c,t,f)
if c then iif = t else iif = f
end function
<%
num = 5
num = iif((num >=0 and num <10), "0" & num, num)
response.write num
%>