There seems to be an error in parsing the levelsof command with if in Stata 18 SE on Linux, consult the screenshot.
The same command works well on other systems.
The same command works well on other systems.
which levelsof
path\ado\base\l\levelsof.ado *! version 3.2.3 16aug2023
update query
Comment