. "local1 = Main string" . "local2 = Temporary string storage" . "local3 = String length" set "$local1" to "" set "$local2 " to "" set "local3" to 0 input string "String to reverse:" set "$local1" to "&INPUT&" set "$local2" to "$local1" set "local3" to "$local2.length" loop start set "$local1.(('local3' - 1) - 'loopcount')" to "$local2.('loopcount')" loop for "('local3' - 1)" * "Reversed string: &$local1& (Length: &$local1.length&)" end