Documentation Center

  • Trial Software
  • Product Updates

H5ML.compare_values

Numerically compare two HDF5 values

Syntax

bEqual = H5ML.compare_values(value1,value2)

Description

bEqual = H5ML.compare_values(value1,value2) compares two values, where either or both values may be represented as a string. The values are compared numerically.

Function parameters:

bEqualA logical value indicating whether the two values are equal
value1The first value to be compared
value2The second value to be compared

Examples

val = H5ML.get_constant_value('H5T_NATIVE_INT');
H5ML.compare_values(val,'H5T_NATIVE_INT')
Was this topic helpful?