added else to ifrow tag.
This commit is contained in:
parent
200b8d6a43
commit
d561a65f9d
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
namespace jet {
|
namespace jet {
|
||||||
|
|
||||||
__ifrow::__ifrow(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
|
__ifrow::__ifrow(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global, "else") {
|
||||||
output = false;
|
output = false;
|
||||||
if(!hasContainer)
|
if(!hasContainer)
|
||||||
throw coreutils::Exception("ifrow tag must have a container.");
|
throw coreutils::Exception("ifrow tag must have a container.");
|
||||||
@ -15,6 +15,8 @@ namespace jet {
|
|||||||
throw coreutils::Exception("sessionid does not exist.");
|
throw coreutils::Exception("sessionid does not exist.");
|
||||||
if(global.getSession(variables["sessionid"])->hasRow())
|
if(global.getSession(variables["sessionid"])->hasRow())
|
||||||
processContainer(container);
|
processContainer(container);
|
||||||
|
else
|
||||||
|
processContainer(container2);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user