Testing an optional string

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

riant

New Member
Aug 27, 2003
5
0
0
Visit site
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!
 

Mr Evi1

New Member
Mar 22, 2002
336
0
0
UK
come.to
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).