I never accounted for that kind of trick when I made the command prompt. However, there's a possibility it might actually work that way. In theory, the [bracketed] section would be changed to it's value, and that value would be included as part of your variable name. You would end up with a unique variable for every possible health value.
This has never been tested, but it is worth trying. Let me know it it actually works.