URL:
<http://gna.org/patch/?1045>
Summary: is_set variable condition
Project: Battle for Wesnoth
Submitted by: elfy
Submitted on: Saturday 04/05/2008 at 13:32
Priority: 3 - Low
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
29 march 2008
22:33 <mihoshi> Sirp:Btw, how can one check in WML that variable is not set?
22:33 <Sirp> I haven't written anything real in WML for a long time.
22:34 <CIB0> you can't.
22:34 <CIB0> it gets set as soon as you check, lol
22:34 <cycholka> mihoshi: probably by querying foo.length
22:35 <cycholka> if variable is not set foo.length will be equal to 0
22:36 <CIB0> cycholka: no, that only works for arrays
22:36 <CIB0> if foo is a container, it works
22:36 <mihoshi> cycholka: Thanks:)
22:36 <CIB0> if it is a scalar, it doesn't
22:46 <cycholka> boucman: an EasyCodingTask - add bool .is_set parameter to
variable
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Saturday 04/05/2008 at 13:32 Name: isset.patch Size: 2kB By: elfy
<http://gna.org/patch/download.php?file_id=4139>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1045>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs