Skip to content

Some confusion about the vrl to_int and greater than documentation #1144

Answered by pront
paomian asked this question in Q&A
Discussion options

You must be logged in to vote

Basically the compiler has different type information for each example you mentioned. This example demonstrates when ! is needed and when it is not based on the type info: example

See that log.status is known to be:

"t2": {
  "integer": true,
  "null": true
}

and to_int works on both the above types.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1138 on November 26, 2024 15:52.