Jump to content

Is there a difference between "." vs '.' in Hscript?


magneto

Recommended Posts

Hi,

I noticed this behaves a little unpredictable:

opexists(opinputpath(".", 0))[/CODE]

than this:

[CODE]opexists(opinputpath('.', 0))[/CODE]

Is there a difference between the 2? The strange behaviour I saw is when I have the top expression as the default value (hscript) for an asset parameter (asset A) and then use that asset somewhere else (asset B ), sometimes when I dive into the asset B that use the asset A, I noticed that parameter's value shows up as 1 in expression mode with light/olive green and the value mode shows nothing (empty).

Not sure what I am doing wrong.

Any ideas?

Thanks :)

Edited by magneto
Link to comment
Share on other sites

In this simplistic case, both "" double quotes and '' single quotes should return the same result.

In general, "" double quotes expand all variables within the string while '' single quotes don't expand variables and pass them through with the $. Handy to know when passing strings containing variables about.


/ -> echo "$TEMP"
/usr/tmp
/ -> echo '$TEMP'
$TEMP
[/CODE]

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...