Those toggle the Hide hidden files and Hide protected operating system files checkboxes in the Preferences dialog. They don't touch any of the global wildcard options.
Use Set GLOBALHIDEFILTER=toggle if you want to toggle the Enable global wildcard filters checkbox on and off.