playMaker

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

westingtyler

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • My Oculus Rift + Touch VR Game Using Playmaker
String to Float with Case for if Invalid
« on: November 13, 2018, 03: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: 14500
  • Official Playmaker Support
    • View Profile
Re: String to Float with Case for if Invalid
« Reply #1 on: November 13, 2018, 11:12:45 PM »
Hi,

 what action are you using exactly for this?

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

 Bye,

 Jean