Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 23620

Scripting • Re: What returns :find it it finds nothing?

$
0
0
"nil" is a type, NOT a keyword in scripting. Instead, you need to use the syntax [:nothing] to "create" a "nil type" & then compare the "new nil".
Code:
:put ([:find "asd" "p" -1] = [:nothing])

Statistics: Posted by Amm0 — Mon Apr 07, 2025 12:22 am



Viewing all articles
Browse latest Browse all 23620

Trending Articles