Topic: How To Buy A Guitar - Checklist
1) Make sure you have a tuner, ideally an intellitouch or similar.
2) Go to shop.
3) Make sure guitar is in tune.
4) Check intonation. Is 12th fret exactly in tune when open string is? If not then you could get out a tiny screwdriver and adjust, but shop assistant should be asking what's up by now.
5) Give guitar a good long play with chords and bends.
6) Check tuning, did it hold the way you set it?
7) Electrics, work the pickup selector. Do you get clicks and pops?
8) Electrics, work the volume and tone pots. Do they crackle?
The above check should reject any guitars with bad tuners, bad neck/bridge setup and bad electrics. After that it's all down to you.