27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Advanced</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Power</strong> <strong>Interface</strong> <strong>Specification</strong><br />

19.6.66 LAnd (Logical And)<br />

Syntax<br />

LAnd (Source1, Source2) => Boolean<br />

Source1 && Source2 => Boolean<br />

Arguments<br />

Source1 <strong>and</strong> Source2 are evaluated as integers.<br />

Description<br />

If both values are non-zero, True is returned: otherwise, False is returned.<br />

19.6.67 LEqual (Logical Equal)<br />

Syntax<br />

LEqual (Source1, Source2) => Boolean<br />

Source1 == Source2 => Boolean<br />

Arguments<br />

Source1 <strong>and</strong> Source2 must each evaluate to an integer, a string, or a buffer. The data type of Source1<br />

dictates the required type of Source2. Source2 is implicitly converted if necessary to match the type<br />

of Source1.<br />

Description<br />

If the values are equal, True is returned; otherwise, False is returned. For integers, a numeric<br />

compare is performed. For strings <strong>and</strong> buffers, True is returned only if both lengths are the same <strong>and</strong><br />

the result of a byte-wise compare indicates exact equality.<br />

19.6.68 LGreater (Logical Greater)<br />

Syntax<br />

LGreater (Source1, Source2) => Boolean<br />

Source1 > Source2 => Boolean<br />

Arguments<br />

Source1 <strong>and</strong> Source2 must each evaluate to an integer, a string, or a buffer. The data type of Source1<br />

dictates the required type of Source2. Source2 is implicitly converted if necessary to match the type<br />

of Source1.<br />

Description<br />

If Source1 is greater than Source2, True is returned; otherwise, False is returned. For integers, a<br />

numeric comparison is performed. For strings <strong>and</strong> buffers, a lexicographic comparison is performed.<br />

True is returned if a byte-wise (unsigned) compare discovers at least one byte in Source1 that is<br />

numerically greater than the corresponding byte in Source2. False is returned if at least one byte in<br />

854 April, 2015 Version 6.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!