The first thing....

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
that program that a youtuber called "creature mann" or whatever it is called seems to have written. I really need to start toying with it some more as it looks awesome.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
1+"1"=11

or it needs to go the other way around, I forgot as those rules are so fricking stupid and useless.

edit for those that don't get it:
the plus sign is in javascript both used to concatenate strings and add two numbers together.
This means that 1+1 would result in 2 and that "this is a string"+" another string" would result in "this is a string another string". However if one is a string and the other is a number it has no clue what it is that you want to do and as such doesn't always end up adding the two values together resulting in 1+"1"="11".
 

ljfa

New Member
Jul 29, 2019
2,761
-46
0
In PHP, strings are always compared numerically when possible (unless you use ===).
"1" < "02" in PHP
Edit: corrected
 
Last edited:

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
Something that is at least a bit more sane then javascript >_>

Did I already mention that I don't like it? Like at all?
 

ljfa

New Member
Jul 29, 2019
2,761
-46
0
It does not make any sense if you want to order strings lexicographically.

BTT: dogescript