https://cerbos.dev logo
#help
Title
# help
k

Kamran Biglari

08/29/2023, 3:02 PM
Hi guys, Does anyone know how to use condition script? I'm not sure but how it's possible to implement if ... then ... if ... in Cerbos? Can condition handles by external system to call a external engine and response with TRUE/FALSE?
c

Charith (Cerbos)

08/29/2023, 3:55 PM
Hey, You can use the ternary operator (
x == 1 ? "foo" : "bar"
) in conditions. You can't call into external systems from conditions. You have to send all the external data Cerbos needs as attributes of either the principal or the resource.
2 Views