Code generation error when using if..else..if...else..if
Program below results in code generation error.
application hydrasection bla
define page root() {
}define main() {
body()
}define body (){
“blablabla”
}entity Project {
name :: String (id)
}define page bla(p: Project) {
Submitted by Rob Vermaas on 10 June 2010 at 09:55
main()
define body() {
var a : Set ;
var nrscheduled := a.list().length ;
var nrsucceeded := 0;
var nrfailed := 0;
if(nrscheduled == 0) {
image(“/images/question-mark.png”)
} else if(nrfailed == 0) {
image(“/images/success.png”)
} else if(nrfailed > 0 && nrsucceeded > 0) {
image(“/images/failure-some.png”)
} else {
image(“/images/failure.png”)
}
}
}
Issue Log
On 15 January 2014 at 17:37 Elmer van Chastelet commented:
Fixed + added test in https://svn.strategoxt.org/websvn/WebDSL/?op=revision&rev=5869&peg=5869
On 15 January 2014 at 17:37 Elmer van Chastelet closed this issue.
Log in to post comments