News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 9th Sep 2003, 08:00 PM   #1
riant
Registered User
 
Join Date: Aug. 27th, 2003
Posts: 5
Testing an optional string

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!
riant is offline   Reply With Quote
Old 9th Sep 2003, 08:12 PM   #2
Mr_Evi1
International arms dealer
 
Mr_Evi1's Avatar
 
Join Date: Jan. 4th, 2003
Location: UK
Posts: 312
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).
__________________
http://come.to/MrEvil
Mr_Evi1 is offline   Reply With Quote
Old 9th Sep 2003, 08:14 PM   #3
riant
Registered User
 
Join Date: Aug. 27th, 2003
Posts: 5
Cool, thanks!
riant is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer