WindO/I-NV4 User’s Manual 20-39
5 Script Coding Examples
20
Script
Script
Operation description
If the value of LDR100 is less than or equal to the value of LDR200, then 0x100 is stored in LDR300.
Script
Operation description
If the value of LDR100 is greater than the value of LDR200, then 0x100 is stored in LDR300.
Script
Operation description
If the value of LDR100 is greater than or equal to the value of LDR200, then 0x100 is stored in LDR300.
â–
Example 5.2.4 Less than or equal to
if ([LDR 100] <= [LDR 200])
{
[LDR 300] = 0xl00;
}
â–
Example 5.2.5 Greater than
if ([LDR 100] > [LDR 200])
{
[LDR 300] = 0xl00;
}
â–
Example 5.2.6 Greater than or equal to
if ([LDR 100] > [LDR 200])
{
[LDR 300] = 0xl00;
}