• Parameters

    • conditions: string[]
    • true_function: string[][]
    • Optional false_function: string[][]

    Returns string[]

    Description

    A standard if statement

    Example

    import { if_statement, c_log } from './lib/core';

    export const update = [
    if_statement(
    [
    'self.score < 1000',
    ],
    [
    c_log("Less than 1000 points"),
    ],
    [
    c_log("More than or equal to 1000 points"),
    ]
    )
    ];

Generated using TypeDoc