LogoPixi’VN
indexInterfaces

Interface: PixiVNJsonIfElse<Then>

Defined in: src/schema/PixiVNJsonIfElse.ts:8

If-Else condition for PixiVNJson

Type Parameters

Then

Then

Properties

condition

> condition: PixiVNJsonConditions

Defined in: src/schema/PixiVNJsonIfElse.ts:20

The list of conditions to be checked.

if is a StorageElementType or a PixiVNJsonValueGet:

  • if is a array or object, the condition is true if not empty
  • if is a string, the condition is true if not empty
  • if is a number, the condition is true if not zero
  • if is a boolean, the condition is true if true
  • if is null or undefined, the condition is false

else?

> optional else?: PixiVNJsonIfElse<Then> | Then

Defined in: src/schema/PixiVNJsonIfElse.ts:28

The value to be returned if the condition is false.


then

> then: PixiVNJsonIfElse<Then> | Then

Defined in: src/schema/PixiVNJsonIfElse.ts:24

The value to be returned if the condition is true.


type

> type: "ifelse"

Defined in: src/schema/PixiVNJsonIfElse.ts:9