Wild Card

Good day

Can you use wildcards within a script with routeros ?

:global dslip [ /ip address get [/ip address find interface=dsl ] address ]

:if ($dslip !="211.*") do={
 /system script run pppoe-running}

My isp will change my ip address once my international capped is reach but will be allowed local traffic.
It will change from 211...* to 212...* .

Any ideas ?

No you can’t use *, however you can use regular expressions wit “~” operator
http://wiki.mikrotik.com/wiki/Scripting#Other_Operators

or
if you need only first number from ip address then you can use pick and find

:if ([:pick $dslip 0 [:find $dslip "."]] != 211) do={ ....

Thanks