Project

General

Profile

Actions

Bug #3574

closed

A "/goto" command misbehaves when located inside an "IF" within an "IF" and used in a dialog.

Added by Acronix Anagami over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/11/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Please see example below:

Normal condition:

dialog example { 
   title "Example" 
   size -1 -1 295 190
   edit "", 4, 10 10 276 121, left, multi, vsbar
   button "Done", 3, 110 150 70 30, cancel 
}
alias examp {
  dialog -m example example
  :next
  did -i example 4 1 first
  did -i example 4 2 second
  did -i example 4 3 third
  did -i example 4 4 fourth
  :end
}

run /examp to check.

Abnormal behavior:

dialog example { 
   title "Example" 
   size -1 -1 295 190
   edit "", 4, 10 10 276 121, left, multi, vsbar
   button "Done", 3, 110 150 70 30, cancel 
}
alias examp {
  dialog -m example example
  if ($me != acronix) {
    if ($me != acronix) { goto next }
  }
  echo -a the condition is false (or is it?)
  :next
  did -i example 4 1 first
  did -i example 4 2 second
  did -i example 4 3 third
  did -i example 4 4 fourth
  :end
}

run /examp to see.

Actions

Also available in: Atom PDF