parse scope variable within [[ ]]