try next in a card script
(but it doesn't have to be there):
Code: Select all
local x = empty
on opencard
answer "<" & x & ">"
end opencard
Thierry
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
local x = empty
on opencard
answer "<" & x & ">"
end opencard
Without having tried it yet, I am guessing you would see <> in the answer box, going to go look nowThierry wrote:Think what could be the answer, and try it...
and that's the point. I was guessing this too, and that the result is the word 'empty'bogs wrote: Without having tried it yet, I am guessing you would see <> in the answer box, going to go look now
*Edit - Ok, I was wrong
Awww, I was trying not to give it awayThierry wrote:and that's the point. I was guessing this too, and that the result is the word 'empty'
instead of an empty variable looks a bug to me.
Doing this works as expected since eons:bogs wrote:I would agree it seems 'bug-ish', after all if you have nothing in a variable, it should be nothing whether you write empty, "", or some other method.Thierry wrote:and that's the point. I was guessing this too, and that the result is the word 'empty'
instead of an empty variable looks a bug to me.
Code: Select all
put empty into x
put empty into field "whatever"
Thanks Craig,dunbarx wrote:I think it is clearly a bug, in that the constant "empty" ought to be 100% interchangeable with "" (that is, two consecutive quotes) in all cases.
Latest news:Thierry wrote:
Bug 20416
Thierry
Code: Select all
local x
// x should contain nothing at this point, as it is only declared...
on opencard
answer "<" & x & ">"
end opencard
bug or not bug and adding to this that the Script Editor is a bit silent,;mwieder wrote:As noted in the comments to but 19413, this isn't actually a bug, but the confluence of a few things.
I believe your statement should be print on stone somewhere in the dictionary or the users' guide.For starters, while assigning values to local variables at declaration time is not officially forbidden, it's not officially condoned either.
Yep. No argument from me on that account.bug or not bug and adding to this that the Script Editor is a bit silent,;
this is a real pain, for starters or not