Skip to content

JsLessThanOrEqual

Xiaoyin Liu edited this page Nov 28, 2017 · 1 revision

Determine if one JavaScript value is less than or equal to another JavaScript value.

Syntax

CHAKRA_API
    JsLessThanOrEqual(
        _In_ JsValueRef object1,
        _In_ JsValueRef object2,
        _Out_ bool *result);

Parameters

  • object1: The first object to compare.
  • object2: The second object to compare.
  • result: Whether object1 is less than or equal to object2.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

This function is equivalent to the <= operator in Javascript.

Clone this wiki locally