Return a value and exit the function or script
[...] = optional ... = your value
return [ ... ]
return uses the same basic syntax as print
return is designed primarily to be used in functions
Using return in normal Xtsripts may cause unexpected results and failures
<!--parser:xtscript-->
# In functions return will print out its value and exit the function only
function test
  return test value<br />
endfunction
call test
print <b>other Xtscript will be executed</b><br />
<!--/parser:xtscript-->

<!--parser:xtscript-->
# In standard Xtscript return will print out its value and exit the Xtscript parser
var $var = 1
return \$var = $var
print <b> This is not executed</b>
<!--/parser:xtscript-->

<div>Other html on the page will be executed</div>

<!--parser:xtscript-->
print <div> But other xtscripts on the page are not executed </div>
<!--/parser:xtscript-->
Show in textarea
Reload
test value
other Xtscript will be executed
$var = 1
Other html on the page will be executed