There are many ways for code to be crap. In this case it's crap because it's either broken (should be testing something but isn't due to syntax error) or it's over complex and misleading (assigns a variable in the most obscure way possible).Depends how you define crap, it does what you told it to. The analogy is that punctuation / grammar / syntax can radically change the meaning of a sentence / statement.
The only way it might be non-crap is if it were part of an entry for the International Obfuscated C Code Contest.