<https://www.autoitscript.com/forum/topic/157116-creating-a-simple-script-engine-with-autoit/#comment-1137657>
<http://schema.org/text>
"Requires you to have the 'Func' declared, unfortunatly: \n\nLocal $Func\n$string = \"Func = 456\"\n$aString = StringRegExp($string,\"(.*)\\s=\\s(.*)\",3)\n$VarName = $aString[0]\n$VarValue = $aString[1]\nAssign($VarName,$VarValue)\nConsoleWrite(\"VariableName=[\" &amp; $VarName &amp; \"], Value=[\" &amp; Eval($VarName) &amp; \"] or, using your 'variable'=[\" &amp; $Func &amp; \"]\" &amp; @CRLF )\n\noutput: VariableName=[Func], Value=[456] or, using your 'variable'=[456] \n\nedit: no need to move the array into $VarName...helpfile states the first param of assign can't be an array, but am able to do so...must mean it can't be an empty array element?: \n\nLocal $Func\n$string = \"Func = 456\"\n$aString = StringRegExp($string,\"(.*)\\s=\\s(.*)\",3)\nAssign($aString[0],$aString[1])\nConsoleWrite(\"using your 'variable'=[\" &amp; $Func &amp; \"]\" &amp; @CRLF )\n\noutput: using your 'variable'=[456] "
<https://www.autoitscript.com/forum/topic/157116-creating-a-simple-script-engine-with-autoit/?tab=comments#comment-1138783>