SET hash = CASE $hash = '' WHEN TRUE THEN NULL ELSE $hash END; SET redirect = COALESCE($go, '') = 'true' AND $hash IS NOT NULL; SELECT 'dynamic' AS component, sqlpage.run_sql('goto/redirect.sql') AS properties WHERE $redirect ; SET inner = 'goto/Index.sql'; SELECT 'dynamic' AS component, sqlpage.run_sql('goto/entry.sql') AS properties;