Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Result Types are Mismatched for If Statement

1 REPLY 1
Reply
Message 1 of 2
Anonymous
365 Views, 1 Reply

Result Types are Mismatched for If Statement

I am trying to create an if statement using the Expression Builder. 

 

The syntax is:

 

 If ( [condition], [trueValue], [falseValue] )  

 

I have entered:

 

  If (  OWNER_ID = 10, 'COVAV' , 'Other' )  

 

OWNER_ID is an integer. I have tried other fields that are strings and putting quotes around the test, but nothing works. I get:

 

The expression is invalid
Error: Argument types for function 'If' are mismatched. Click here to move the cursor to the error (3)#3
Error: Result types are mismatched: the validation operation expected 'Boolean' but the expression returned 'Unknown'

 

Thanks

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Try single-quoting the condition part of the expression.

 

If (  'OWNER_ID = 10', 'COVAV' , 'Other' )  

 

 

- Jackie

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report