Skip to content

Commit

Permalink
Fix Analyzer version using tointeger()
Browse files Browse the repository at this point in the history
  • Loading branch information
simustyt committed Jun 5, 2024
1 parent 755de0b commit bd8cbab
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pak128.prototype/scenario/tutorial/scenario.nut
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,17 @@ function string_analyzer()
if(result.res){
value_a += tx
if(j == s_siz.a-1) {
val_a.push(value_a)
val_a.push(value_a.tointeger())
continue
}
}
else {
if(j == s_siz.a-1) {
val_a.push(value_a)
val_a.push(value_a.tointeger())
continue
}
if(result.val == "."){
val_a.push(value_a)
val_a.push(value_a.tointeger())
value_a = ""
continue
}
Expand All @@ -197,17 +197,17 @@ function string_analyzer()
if(result.res){
value_b += tx
if(j == s_siz.b-1) {
val_b.push(value_b)
val_b.push(value_b.tointeger())
continue
}
}
else {
if(j == s_siz.b-1) {
val_b.push(value_b)
val_b.push(value_b.tointeger())
continue
}
if(result.val == "."){
val_b.push(value_b)
val_b.push(value_b.tointeger())
value_b = ""
continue
}
Expand All @@ -232,6 +232,7 @@ function string_analyzer()
local num_a = val_a[i]
local num_b = val_b[i]
//gui.add_message("Array test -- val_a "+num_a+" val_b "+num_b+" -- siz_A "+siz_va+" siz_B "+siz_vb)
//gui.add_message("Val type -- val_a "+type(num_a)+" val_b "+type(num_b)+"")
if(num_a < num_b) {
result.st = true
return result
Expand Down

0 comments on commit bd8cbab

Please sign in to comment.