Showing quotation marks in a string parameter

0 favourites
  • 5 posts
From the Asset Store
Firebase Leaderboard
$2.50 USD
50% off
A small template showing how to build a firebase ranking
  • Suppose I have a function that passes multiple parameters, with one of them being a string:

    <img src="http://i.imgur.com/EKyXJvq.png" border="0" />

    In the function itself, it will display these parameters:

    <img src="http://i.imgur.com/H4wpSVu.png" border="0" />

    However, I want quotation marks to be visible around the string text that is shown. How would I accomplish this?

  • You can use a double quote as escape character.

    So if you want the quotation marks to be visible you should use 2 "" evertime you want to display it.

    e.g.

    set text to """Damage:"" " & Function.Param(1) & newline & """MaxSpace:"" " etc.

  • I mean in the function command to display the parameters, I want to be able to add visible quotation marks around Function.Param(4) as opposed to adding them to the function call itself (and passing in the quotation marks as part of the parameters).

    Is it possible to do this?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Double quotes can be used as an escape character in any string, including function parameters. Setting parameter 4 to """Medium Range Remover""" should work fine.

  • I mean in the function command to display the parameters, I want to be able to add visible quotation marks around Function.Param(4) as opposed to adding them to the function call itself (and passing in the quotation marks as part of the parameters).

    Is it possible to do this?

    Yes you just have to use the escape character as i mentioned.

    Something like this

    .....newline & """" Function.Param(4) """"

    Made a small .capx

    Was that what you are looking for?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)