Page 41 of 41

Re: Scripting Bugs

Posted: 08 Dec 2017 00:54
by PeterH
highend wrote:@PeterH
No, you're misunderstanding the whole thing. Sorry!
You are right!

I should have used my glasses - he's explicitely talking about nowdoc. But I never saw a reason to use nowdoc - so I didn't know/recognize the syntax, i.e. the meaning of the quotes, and thought about heredoc.

So forget what I said.

Re: Scripting Bugs

Posted: 08 Dec 2017 15:04
by admin
Confirmed and fixed. Thanks! :tup: :cup:

Re: Scripting Bugs

Posted: 21 Feb 2018 22:07
by Filehero

Code: Select all

  $var = "Test";
  msg("$var hallo");
  msg("$var_hallo");
Why is $var not resolved for the second msg call?

Re: Scripting Bugs

Posted: 21 Feb 2018 22:12
by highend
Mh?

$var_hallo is a totally different variable and if you don't initialize it first it will display it's variable name

Re: Scripting Bugs

Posted: 21 Feb 2018 22:13
by PeterH
"_" is an allowed letter for a variable name - so the complete expression is seen as reference to a variable.
" " is not allowed for a variable name - so the interpreter can see where the name ends.

Re: Scripting Bugs

Posted: 21 Feb 2018 23:02
by Filehero
:oops: :oops: :oops:

Sorry ...

Arghh, stupid me :blackstorm: