Inline conditional expression

You can write a short expression that get value based on condition.

<condition>?<value if condition is satisfied>:< value if condition is not satisfied>

Ex: A simple guest game

$thinking_number:(@random_int 1, 2) // $a get value 1 or 2 randomly

@echo “I am thinking about a number: 1 or 2. Can you guest which I am thinking?”

@read $user_input

$thinking_number : $user_input ? “Congratulation, you win” ? “Better luck next time”

$?

In case user guest correctly

> I am thinking about a number: 1 or 2. Can you guest which I am thinking?

< 1

> Congratulation, you win

Otherwise

> I am thinking about a number: 1 or 2. Can you guest which I am thinking?

<2

> Better luck next time