scope xrandr_status. sbool #cacheOn; sS #cacheValue; sS xrandr_status() { if (cacheOn && cacheValue != null) ret cacheValue; S s = backtick("xrandr"); if (cacheOn) cacheValue = s; ret s; } end scope