Skip to main content

Syntax of expression in Workflow

Comments

5 comments

  • Nico Burgerhart
    String.Format("Code = '{0}'",Code)

     

     
    0
  • Zack Robison
    Nico's got the way to go, but FYI you can also overload the if operator with two args which essentially makes the first arg a nullable value with the second arg acting as a default: "Code = '"+if( Code, CObj("") ).toString+"'"

     

     
    0
  • Nico Burgerhart
    Thanks Zack, that's what I normally use in stead of the String.Format variant :-), except I use just "" in stead of CObj("").
    0
  • Zack Robison
    Depending on the class of Code, of course!  If we can infer a string value from the arguments, then the .toString method is superfluous anyway.
    0
  • Permanently deleted user
    Great!  Thanks Nico and Zack.  It works perfectly now using Nico's suggestion.
    0

Please sign in to leave a comment.