mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-01-11 04:29:45 +00:00
substitute @NA for non-existent cell
This commit is contained in:
parent
d1ed74d449
commit
2097a2765f
@ -48,7 +48,7 @@ class Condition
|
||||
// System.out.println (conditionText);
|
||||
if (conditionExpression == null)
|
||||
{
|
||||
// System.out.printf ("creating %s%n", conditionText);
|
||||
System.out.printf ("creating %s %s %s%n", conditionText, comparator, valueText);
|
||||
conditionExpression = new Expression (parent, conditionText);
|
||||
// System.out.printf ("creating %s%n", valueText);
|
||||
valueExpression = new Expression (parent, valueText);
|
||||
|
@ -94,6 +94,8 @@ class Expression implements Value
|
||||
Cell cell = parent.getCell (addressText);
|
||||
if (cell != null)
|
||||
values.add (parent.getCell (addressText));
|
||||
else
|
||||
values.add (Function.getInstance (parent, "@NA"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -27,6 +27,7 @@ class If extends Function
|
||||
{
|
||||
valueType = ValueType.VALUE;
|
||||
|
||||
System.out.println (functionText);
|
||||
if (condition.getResult ())
|
||||
{
|
||||
// System.out.println ("true");
|
||||
|
Loading…
x
Reference in New Issue
Block a user