Replies: 1 comment
-
I made some progress learning Ruby and other discussions here and on stackoverflow and I made up until here:
and run an xlsx with two lines, one where AUMOD4Value is 0 and one where it's 3. I expected to get the first card with a brown box and the second with a green one, but instead I get both card with both boxes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, after a couple of simple projects without much issues, I'm trying to build a project that requires a bit of a modular template.
Some fields might be or not be present or have different colors based on variables passed in an xlsx file.
Some examples:
Text color changes based if a number take from a xlsx cell is positive, negative or 0.
Textbox and text appear or not based if a xlsx cell contains is empty or contains a value.
I tried
source["colName"].to_i to convert to int ut without success
to check if the cell is empty I tried
source["colName"].size == 0
source["colName"].length == 0
source["colName"] != nil
but nothing seems to work with different issues.
Is there something I'm missing?
PS: I'm not overly familiar with ruby so it might be something really basic, I apologize if that's the case.
Beta Was this translation helpful? Give feedback.
All reactions