mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-26 17:29:50 +00:00
29 lines
509 B
Java
29 lines
509 B
Java
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
public class IsNa extends Function
|
|
{
|
|
IsNa (Cell cell, String text)
|
|
{
|
|
super (cell, text);
|
|
|
|
assert text.startsWith ("@ISNA(") : text;
|
|
|
|
source = cell.getExpressionValue (functionText);
|
|
values.add (source);
|
|
}
|
|
|
|
@Override
|
|
public boolean isBoolean ()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public void calculate ()
|
|
{
|
|
source.calculate ();
|
|
|
|
value = source.isValueType (ValueType.NA) ? 1 : 0;
|
|
valueType = source.getValueType ();
|
|
}
|
|
} |