Welcome to iraf.net Friday, March 29 2024 @ 10:02 AM GMT
Buglog #401
- Friday, May 15 1998 @ 05:44 PM GMT
- Contributed by: admin
- Views: 1,121
MODULE: astutil.asthedit
SYSTEM: V2.10-V2.11.1
SYSTEM: V2.10-V2.11.1
NUMBER: 401 MODULE: astutil.asthedit SYSTEM: V2.10-V2.11.1 DATE: Fri May 15 11:44:19 MST 1998 FROM: valdes BUG: The if-else-endif syntax does not work correctly. The following example shows what doesn't work even though correctly specified. if (dec > 45) print ('above 45') else print ('below 45') endif This will only execute the if part if dec > 45 and do nothing if dec < 45. The bug is that a single word is considered to be a keyword and so 'else' and 'endif' are interpreted as keywords and not statements. The workaround is as shown below using the same example. if (dec > 45) print ('above 45') else = else print ('below 45') endif = endif The same applies to the special statment 'quit' which needs to be issued as 'quit = quit'. STATUS: Fixed for a future release.
The following comments are owned by whomever posted them. This site is not responsible for what they say.