apoc.scoring.existence

Function

apoc.scoring.existence(score INTEGER, exists BOOLEAN) - returns the given score if true, 0 if false.

Signature

apoc.scoring.existence(score :: INTEGER, exists :: BOOLEAN) :: FLOAT

Input parameters

Name Type Default

score

INTEGER

null

exists

BOOLEAN

null

Usage Examples

RETURN apoc.scoring.existence(10,true) AS output;
Table 1. Results
output

10.0

RETURN apoc.scoring.existence(10,false) AS output;
Table 2. Results
output

0.0