fork download
  1. public module ShowIIF
  2. public sub Main()
  3. Dim input as String = "Junior"
  4. Dim parsed as Integer
  5. parsed = IIF(IsNumeric(parsed), CInt(input), -1)
  6. end sub
  7. End module
Runtime error #stdin #stdout #stderr 0.14s 36792KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception: System.InvalidCastException: Conversion from string "Junior" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] 
  at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString (System.String Value) [0x00000] 
  --- End of inner exception stack trace ---
  at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString (System.String Value) [0x00000] 
  at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger (System.String Value) [0x00000] 
  at ShowIIF.Main () [0x00000]