I'm trying to write a Field Script in my Network Dataset Properties that limits a Travel Modes ability to use edges that don't contain specific attributes. For example, a feature with a column called RAV3_NETWORK either contains a value "Tandem Drive Network 3" or is NULL. I want to prohibit a route from traversing edges where that field is NULL.
I have managed to get this Field Script to work: NOT([RAV3_NETWORK] = "Tandem Drive Network 3") where I have added in another random value instead of NULL, but I don't want to have to modify the data to do that.
I would rather use something like:
NOT([RAV3_NETWORK] = "Tandem Drive Network 3") OR [RAV3_NETWORK] IS NULL
which would find any value that isn't Tandem Drive Network 3 as well as return the Nulls - but I can't for the life of me get it to recognise Nulls. I've tried Empty, IsEmpty, IsNull as well with no luck. The above query returns this error in the Build Network log for each feature with a NULL value:
SourceName: State_Road_Network, ObjectID: 354, Network object evaluator error.

