Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 17 made on Monday October 4, 2010 at 02:16
BluPhenix
Long Time Member
Joined:
Posts:
December 2008
371
Hehe, ok.

Well then I suppose it works because add in my language has two translations that are used in different context, one for numbers and one for not numbers. Where you have "add 3 to 5" and "add sugar to lemonade" we have 2 different words for add. So maybe it's beacuse of this that it works for me.

In any case you know what add means from the context in the cases above, this is why I do "" + 1, so In my defense :) -> I have a string I add something to it so it becomes a longer string ;).

Try JSLint (jslint.com), will spare your health. I red on the Prontoscript Library development guide that a script for Apache ant is available that does JSLint and yui compress at the same time, but haven't tried it yet.

But still I prefer the overloading of + than of || like it was mentioned here, because I really can't think that much out of the box to OR a string with a number. For me it's like "Divide by zero", must be my electronics background. :)


Hosting Services by ipHouse