Logic for 'x' value

In reply to hvgbl:

Still no where near enough code shown about where abc is declared and how its value is set to be able to understand your question. If you want to be 1, then either initialize it to 1 in its declaration, or set it to 1 when you want it to be.