I have a very basic syntax question for declaring $X_{hb}$ a variable.
f[Subscript[X, hb_]] := Subscript[X, hb]
In mathematica instead of writing the Subscript[]
code, I simply use the ctrl+_
shortcut to place whatever I want in the subscript. However, after doing this I do not know how make mathematica consider $X_{hb}$ as a variable since placing the _
after it is considered to be an unrealted character.
See here: https://i.sstatic.net/JGz8F.png
How do I fix this issue?