Use a subformula for this; see old versions of the spidermonkey formula for details.