• Documentation
  • Workato Blog
  • Product Blog
  • Return to Workato
  • Login
  • Automation Institute
  • Documentation
  • Community Forums
New Topic
Discussions Enhancement Requests Core Product Features
S

Saul Macht

started a topic almost 6 years ago

Provide a method for similar to presence, If present should return value otherwise empty (but not nil)

We need a special method for most of the cases to avoid + undefined on Nil.

Based on the type of the internal object, It should return its default value.


For Ex:

1. String - empty string  or ""

   name = nil

   (name.new_method) should return empty

  when i use for concatenating name with any other variable, I can avoid throwing exception.

2. Integer: 0

   

3. float: 0.0


so on..

this really helps avoiding lot of job failures due to Nil, like + is undefined on nil class.

Login to post a comment

Still can't find your solution?

Send us a ticket, we will try our best to assist you with your problem

Documentation
Developer's Library
Tutorials
eBooks
Product Hour
Product Blog
Workato Blog
Product updates
Customer Stories
© Workato 2022   Privacy   Terms   +1 (844) 469-6752
  • Documentation
  • Workato Blog
  • Product Blog
  • Solutions
  • Forums
  • Tickets
  • Log in
  • Return to Workato
Topic views count