Unary Operator "isknown"

QuantScript's unary

isknown
operator is used to check whether a value is known - meaning that its type is not Unknown.

Examples:

1 var = 5
2 isVarKnown = isknown var # -> true
3
4 var = unknown
5 isVarKnown = isknown var # -> false
6
7 var = 42 / 0
8 isVarKnown = isknown var # -> false

Table of Operands

Anything not listed here results in an Unknown
This operator is right associative -

isknown isknown x
is the same as
isknown (isknown x)
.

OperatorOperandResult
isknownNumberBoolean
isknownBooleanBoolean
isknownDayBoolean
isknownTimeBoolean
isknownFunctionBoolean
isknownUnknownBoolean
isknownSeries<Any>Series<Boolean>
isknownMultiDataset<Any>MultiDataset<Boolean>