I'm trying to take a conditional expression like "3 > 1" as an argument for a function but without its evaluation before being passed. HoldForm works fine in situations like this:
*In[1]:=* 3 > 1
*Out[1]=* True
*In[2]:=* 3 > 1 // HoldForm
*Out[2]=* 3 > 1
However, it doesn't work if I use lists....
*In[3]:=* a = {3, 2, 1};
b = {1, 2, 3};
*In[4]:=* a[[1]] > b[[1]]
*Out[4]=* True
*In[5]:=* a[[1]] > b[[1]] // HoldForm
*Out[5]=* a[[1]] > b[[1]]
I would like to have '3 > 1' as my output for Out[5]. Using Evaluate[a[[1]]], etc., does not work. Thanks for your help.