View Full Version : if (d) {some code} what does it mean?
progfrog
May 17th 2008, 1:55 am
does it mean that in case d is true then {some code} or what?
i simply don't know...
thanks for checking this post out.
eTechDude.com
May 17th 2008, 3:51 am
i'm sure it means if variable is active or has data in it (i stand to be corrected)?
eg:
<script type="text/javascript">
<!--
function confirmation() {
var answer = confirm("Leave digitalpoint.com?")
if (answer){
alert("Bye bye!")
window.location = "http://www.google.com/";
}
else{
alert("Thanks for sticking around!")
}
}
//-->
</script>
progfrog
May 17th 2008, 5:46 am
thanks man. now i understand!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.