Indeterminate and null values

<< Click to Display Table of Contents >>

Manual > Script Guide > Script Ver2 (SC2 syntax) >

Indeterminate and null values

About indefinite values (#N/A#) and null values (#NOTHING#)

Undefined values (no value set) and null values (0 elements) are expressed as follows:

 

 


 

Indefinite

 

It is an indeterminate state (a state in which no value is entered).#N/A#It is expressed as:

 

Example 1)

var a = #N/A#; // 1 element, undefined value. 
var b = (a == #N/A#); // 
becomes T

 

Example 2)

var a = c(123, #N/A#, 567); // The number of elements is 3 and a[1] is an indefinite value. 
var b = (a == #N/A#); // 
becomes c(F,T,F)

 

hint

In other words, an indeterminate value is a state in which a box exists but there is nothing in it.

 

example)

var a = c(123, #N/A#, 567);

 

c_script_0001

 

 


 

Null value

 

The total number of elements is 0. A null value is#NOTHING#It is expressed as:

The value will be null in the following cases:

 

example)

var a = c(12, 23, 34);
var b = a; // Since there are no elements less than 10, the number of elements is 0. 
if (b == #NOTHING#)
{
	// Processing when the value is null
	...
}

 

hint

A null value is, in other words, the absence of a box.

 

example)

var a = #NOTHING#;

 

c_script_0002