Why doesn’t this piece of code output anything:
if(hex(255,2) == hex(255,2)) {
println("foo");
}
But this one does?:
if(unhex(hex(255,2)) == unhex(hex(255,2))) {
println("bar");
}
Why doesn’t this piece of code output anything:
if(hex(255,2) == hex(255,2)) {
println("foo");
}
But this one does?:
if(unhex(hex(255,2)) == unhex(hex(255,2))) {
println("bar");
}
Hello @bbcwarrior.
When comparing strings:
if( hex(255,2).equals( hex(255,2) ) ) {
println("foo");
}
References:
:)