gpo={};
oee={{{0, 50}, {120, 100}}, 2};
If[ gpo= ={} && Last[oee] ==(* any integer *)
,
(* then that returns me the variable that contains an entire number in the end, in this case oee *)
]
I have tried using Cases without success, any idea is useful and welcome,
I would like to ask if I can clear some threads that I’ve started ?
Bruce - I’m not entirely certain, but I think an “entire number” is an integer.
Luis - I don’t quite understand what exactly you want your code to return; do you want the name of the variable? Are there more variables than just “oee”, and you need to find the one that ends with that specific integer? I don’t think you can easily access the name of a variable once it’s been assigned a value, so you might have to write this differently.