Convert 'true', 'false' to boolean : Boolean Utilities « Development « JavaScript DHTML






Convert 'true', 'false' to boolean


<html>
<head>
<title>DynAPI Examples - Functions</title>
<script language="JavaScript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript">
dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.library');
dynapi.library.include('dynapi.functions');
dynapi.library.include('dynapi.api');
</script>
</head>
<body>
<font face="arial" size="2">
<script>
var doc=document;
f=dynapi.functions;


doc.write('toBoolean: '+f.toBoolean('true')+'<br><br>');
</script>
</font>
</body>
</html>
           
       








dynapi.zip( 791 k)

Related examples in the same category

1.Choose value based on boolean expression
2.Convert string to float
3.Convert string to integer