Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Can a FunC variable store the result of a logical expresson?

Some programming languages let assign a variable the result of a logical expression. In FunC that could look like this:

int enough? = (s.slice_bits() >= flag_len);

Does FunC support this, is it a valid line of FunC code?

This question was imported from Telegram Chat: https://t.me/tondev/136831

Posted 10 months ago
Votes Newest


Yes, it's supported, and your code is valid. enough? will be an integer, with value -1.

Posted 10 months ago
1 Answer
10 months ago
10 months ago