← All procedures

client.lte

Less than or equal (a <= b)

browsernot registered
Package
@procedures/client · README
Path
["client","lte"]
CLI
Not a mark command: it is not in the default registry.
As data
{"$proc":["client","lte"],"input":{}}
Tags
core, comparison

Try it in the Composer →

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY, allCoreProcedures } from "@procedures/client";

for (const procedure of allCoreProcedures) {
  if (!PROCEDURE_REGISTRY.has(procedure.path)) PROCEDURE_REGISTRY.register(procedure);
}

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["client","lte"], { a: 1, b: 1 });
console.log(JSON.stringify(result));

As data, in a program

{ "$proc": ["client", "lte"], "input": { "a": 1, "b": 1 } }

Input

FieldTypeRequired
anumberyes
bnumberyes

Output

The schema does not list fields (boolean).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "a": {
        "type": "number",
        "description": "The first operand"
      },
      "b": {
        "type": "number",
        "description": "The second operand"
      }
    },
    "required": [
      "a",
      "b"
    ]
  },
  "output": {
    "type": "boolean",
    "description": "True when a is less than or equal to b"
  }
}