@nerdydeeds said:
What kind of code is that?, SQL Server?
x := '';
y := x;
SELECT CASE
WHEN y = x THEN 'woodle is smart'
WHEN y is null THEN 'woodle doesn''t get it'
ELSE 'wtf?' END
INTO result
FROM dual;
That's very pretty, although I think you might have meant
ELSE File_Not_Found END
which is, naturally, what you would want in the highly unusual case where y is not null and not equal to x.
The point, which you apparently missed while you were concentrating on 'i' dotting and 't' crossing, is that if you assign the value of one variable to another they can immediately be not equal to each other.
As an exercise you might try to think about the case where x isn't explicitly set to a zero-length string as in the example but where it might the result of some string manipulations where you started out with a non-zero length string, but somewhere along the way your string was magically transformed into something else. Now imagine if that could happen in Java or C#.
"Elegant, sturdy and bursting with class."