1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Testing an optional string

Discussion in 'Programming' started by riant, Sep 9, 2003.

  1. riant

    riant New Member

    Joined:
    Aug 27, 2003
    Messages:
    5
    Likes Received:
    0
    Hey all,

    I'm trying to test an optional string... Now the UnrealScript Reference indictes that an optional parameter not used is set to 0... if the parameter is a string, would it be set to "0"?

    Any help would be appreciated. :)

    Thanks!
     
  2. Mr Evi1

    Mr Evi1 New Member

    Joined:
    Mar 22, 2002
    Messages:
    336
    Likes Received:
    0
    Unused optional parameters are set to the null value, just like unspecified default properties. For ints and floats it is indeed 0, but for strings it is "" (an empty string).
     
  3. riant

    riant New Member

    Joined:
    Aug 27, 2003
    Messages:
    5
    Likes Received:
    0
    Cool, thanks!
     

Share This Page