Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to construct a condition on the family name of a variable without notice to its index

Suppose I have the list

R=['$x_{0}$','$x_{1}$','$x_{2}$','$a_{3}$','$\\varepsilon_{4}$','$a_{5}$','$\\varepsilon_{6}$']

how can I make a condition looking like

if R[i]== a (the index is not relevant only the family name of the variable)