Jump to content

Execute Expression


Rafal123

Recommended Posts

hi,

Can anybody help to solve this type of problem?

How to execute expression in string data type?

I wanna H execute first expr in "somethin here" and then to execute the rest

Example:

ch("../sss1/f1") --> instead sss1 I wanna have --> sss`opdigits(".")

Link to comment
Share on other sites

ch("../sss" + opdigits(".") + "/f1")

28748[/snapback]

hey edward thanks for answer it works but I have one more question,

why in --> "" we don't use --> ' ? and when we write in standard way there is --> '

in example:

in node file --> cop

I put there: $HIP/frame`opdigits(".")`.tga

but when I wanna execute --> opdigits in --> "" there is no need for--> '

:ph34r:

Can You explain that?

Link to comment
Share on other sites

hey edward thanks for answer it works but I have one more question,

why in --> "" we don't use --> '  ?  and when we write in standard way there is --> '

in example:

in node file --> cop

I put there:  $HIP/frame`opdigits(".")`.tga

but when I wanna execute --> opdigits in --> "" there is no need for--> '

:ph34r:

Can You explain that?

28753[/snapback]

If you do something inside of a text field you're in the text world. Therefore if you need to calculate expression inside of a text field, you use backticks. They specify that a part of the text it not a plain text but an expression which is necessary for calculating. In other cases you're in the expressions world and backticks isn't necessary.

Exception is a global variables which can be used both with backticks and without them.

Link to comment
Share on other sites

If you do something inside of a text field you're in the text world. Therefore if you need to calculate expression inside of a text field, you use backticks. They specify that a part of the text it not a plain text but an expression which is necessary for calculating. In other cases you're in the expressions world and backticks isn't necessary.

Exception is a global variables which can be used both with backticks and without them.

28763[/snapback]

hey hoknamahn, many thanks for an explanation now it's more clear

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...