Skip to main content

WaveExists

WaveExists (wave)

The WaveExists function returns one if wave reference is valid, or zero if the wave reference is null. For example if, in a user function, you have:

Wave w= $"no such wave"

then WaveExists(w) will return zero.

Details

If wave is not a valid wave reference, WaveExists also checks whether wave itself is the name of an existing wave when executing the function. WaveExists should be used in functions only. In a macro, use the exists function instead.

See Also

WAVE, Exists, NVAR_Exists, SVAR_Exists, Accessing Global Variables and Waves