i would like to use queries more frequently. problem is that i do not understand all that is written on wiki.
considder following examples:
i have a routerboard with 5 ethernet interfaces, 1 wlan, 1 bridge
print all interfaces that are not type=wlan and type=bridge
Code: Select all
/interface/print
=.proplist=type,.id
?type=wlan
?#!
?type=bridge
?#|
but this one:
Code: Select all
/interface/print
=.proplist=type,.id
?type=wlan
?#!
?type=bridge
?#!
?#|
Code: Select all
/interface/print
=.proplist=type,.id
?type=wlan
?type=bridge
?#|!
Code: Select all
/interface/print
=.proplist=type,.id
?type=wlan
?type=bridge
?#&!
how does it correspond to De Morgan's law ?
from what is written you can understand that ! character always corresponds to the item at index = 0. if it does how to negate items at other indexes ?! character replaces top value with the opposite.
what is a "top value" ?
on wiki in table where operations are described word 'character' is frequently used. what kind of character ? what characters are allowed ?
Code: Select all
/interface/print
=.proplist=type,.id
?type=wlan
?#!
?type=bridge
?#!
?#|
?type=wlan has stack index = 0
?type=bridge has stack index = 1
am i correct ?
again the question. witch character ?index that is followed by a character pushes copy of value at that index.
if i write:index that is followed by the end of word replaces all values with the value at that index.
Code: Select all
/interface/print
?type=wlan
?name=bridge
?#0
Code: Select all
/interface/print
?type=wlan
?name=wlan
what does it mean ?sequence of decimal digits followed by any other character or end of word is interpreted as a stack index. top value has index 0.
Code: Select all
000101023123!
"000101023123" is a sequence of decimal digits
what index is it ?
Code: Select all
. after another character pushes copy of top value.