endurox.Bboolpr

endurox.Bboolpr(expression: str, iop: object) None

Compile and print boolean expression to file descriptor.

Bboolpr example
    import endurox

    f = open("output.txt", "w")
    endurox.Bboolpr("(1==1) && T_FLD_STRING=='ABC'", f)
    f.close()

For more details see Bboolpr(3) C API call.

Raises:

UbfException

Following error codes may be present:
BBADNAME - Field not found in FD files or UBFDB.
BSYNTAX - Bad boolean expression syntax
BFTOPEN - Unable to open field tables.

Parameters:
  • expression (str) – Enduro/X UBF boolean expression (full text)

  • iop (file) – Output file (shall be in write mode)