anteo / redmine_custom_workflows

Allows to create custom workflows for Redmine
http://www.redmine.org/plugins/custom-workflows
GNU General Public License v2.0
178 stars 72 forks source link

float value #319

Closed ashrafalzyoud closed 10 months ago

ashrafalzyoud commented 1 year ago

how i can explain about float value if =0 or nil if @issue_custom_field_value(1).zero || @issue_custom_field_value(1).nil? or if @issue_custom_field_value(1).to.f == "0" || @issue_custom_field_value(1).blank? or if @issue_custom_field_value(1).present?

picman commented 1 year ago

https://apidock.com/ruby/String/to_f

if @issue_custom_field_value(1).to_f != 0.0