Why can't cellContent just take an integer

I’m quite angry… why can’t cellContent just take a plain integer instead of needing a latex? Can’t that just be optional?
e

I think it’s more that desmos handles two main types for tables: latex or strings
Try this instead:

cellContent(1,1): "80"

Yes, I know that is how I’m supposed to do it, but why can’t it just be a plain int, instead of needing it to be parsed as a latex? But when you need like \right[1, 2, 3\left] (a list), you use latex?

From my experience, usually when CL refers to something as “content,” like cellContent, this usually means it’s going to be LaTeX. If it’s expecting a number, it’ll specifically say “number,” like number or numberList in graphs. I know it’s a pain, but CL isn’t as flexible as “traditional” programming languages. It’s a complex calculator code and can only expect one kind of value for a sink.

Thanks for the tip on when CL expects latex or a number. I’ve also had many encounters where I was looking for a function that didn’t exist but does exist in other coding languages. I’m still trying to adapt :smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.