playMaker

Author Topic: How to set string variable to empty string?  (Read 2310 times)

tinjaw

  • Playmaker Newbie
  • *
  • Posts: 24
How to set string variable to empty string?
« on: February 18, 2014, 03:12:00 PM »
I am building a string by concatenating several strings together. Before I do this I want to set the value of the variable to an empty string. Not null, an empty string.

If I use a Set String Value action, I cannot leave the String Value empty as it considers this an error.

What is the proper way to set a sting to an empty string?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to set string variable to empty string?
« Reply #1 on: February 18, 2014, 04:06:56 PM »
Would using a simple space be acceptable?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to set string variable to empty string?
« Reply #2 on: February 18, 2014, 04:11:02 PM »
If not, you can just remove the [RequiredField] above the variable definition and save it as a new script.

Actually, its attached.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D