I am trying to use the 'intersects' function within an 'if' condition. If a polygon in Layer A intersects a polygon in layer B, then the cell should display 'YES', otherwise 'No'.
However, I don't know how to properly call the Layer B in the field calculator. The expression I am working on looks like this :
if(intersects( $geometry,geometry('LayerB') ),"YES","NO")
Does anyone know how to put it correctly?