[mapguide-users] Need help with IF-statment in Tool Tip

JamesDudden jamesdudden at blueyonder.co.uk
Wed Nov 11 07:31:12 EST 2009


What does the error say? It normally points to which bit is wrong.

Is it the empty string? 
Try putting a 0 instead like this:
If (  LENGTH(BYGGINV_2) > 0,  BYGGINV_2 , 0)   


Kratz wrote:
> 
> Hi!
> 
> I need help writing a correct string with an if-statement.
> 
> Trying to determine whether an attribute contains any value(string) or
> not.
> 
> Why doesn't this string work?
> 
> If (  LENGTH(BYGGINV_2) > 0,  BYGGINV_2 , ' ' )   
> 
> 
> Default:
> If ( [condition], [trueValue], [falseValue] )  
> 


-----
http://www.software-matters.co.uk Software Matters  - 
http://www.software-matters.co.uk/bespoke-database-design.html Bespoke
Database  and Software Solutions
-- 
View this message in context: http://n2.nabble.com/Need-help-with-IF-statment-in-Tool-Tip-tp3985605p3986117.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list