1
00:00:00,470 --> 00:00:07,390
The boolean function can be used to find out if an expression or variable is true as a general rule.

2
00:00:07,420 --> 00:00:10,090
Everything with a real value is true.

3
00:00:10,090 --> 00:00:14,080
This includes both numerical and string data.

4
00:00:14,080 --> 00:00:17,350
Anything without a real value is false.

5
00:00:17,350 --> 00:00:20,640
Let's take a look at an example in this script.

6
00:00:20,690 --> 00:00:29,330
We have seven variables declared B one to be seven each variable uses the boolean function to test whether

7
00:00:29,330 --> 00:00:34,870
a specified value is true using the get element by ideas method.

8
00:00:35,000 --> 00:00:37,370
We can output the data.

9
00:00:37,470 --> 00:00:41,180
Let's take a look at this page in our web browser to see the results.

10
00:00:53,330 --> 00:01:01,440
We can see in our browser that all the numbers including eighty two point six negative 10 are true.

11
00:01:01,510 --> 00:01:09,900
The same goes for variable B six which contained the equation the strings included in variable before

12
00:01:10,020 --> 00:01:19,110
and B five are also true the last variable variable B seven which contain the value 0 is false.
