playMaker

Author Topic: String to Float with Case for if Invalid  (Read 1539 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
String to Float with Case for if Invalid
« on: November 13, 2018, 05:10:15 PM »
My game keeps hanging when players put in a time string, then the String to Float can't handle it. Would be great if there was a case in this action for "do if not a valid float/or is empty".

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: String to Float with Case for if Invalid
« Reply #1 on: November 14, 2018, 01:12:45 AM »
Hi,

 what action are you using exactly for this?

ConvertFormatedStringToFloat should not throw any error if the string is not formatted properly.

 Bye,

 Jean