Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ifThen

import { ifThen } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

statement condition

@example
// returns "if(a)b()"
ifThen("a", "b()")
@example
// returns "if(a){b();c()}"
ifThen("a", statements("b()", "c()"))
function ifThen(condition: Printable, then: Printable): string;
§
ifThen(condition: Printable, then: Printable): string
[src]

§Parameters

§
condition: Printable
[src]

§Return Type

§
string
[src]