Menu

#1 Message does not convert to string unless "" is used .

closed-fixed
None
8
2011-03-13
2010-08-07
No

When "" is not used in between variables , then message evaluation does not happen.

var x = 44
var y = "Hello World"

1) var z = x +y
2) var z = x+""+y

Statement -1 does not work in hawk scripting
whereas Statement-2 does work.

Discussion

  • Manoranjan  Sahu

    Manoranjan Sahu - 2010-08-10
    • assigned_to: nobody --> msahu98
     
  • Manoranjan  Sahu

    Manoranjan Sahu - 2011-03-13
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB