added else to ifrow tag.
This commit is contained in:
1 parent
200b8d6a43
commit
d561a65f9d
2 files changed
+4
-2
No files matched your search
+4
-2
@@ -7,14 +7,16 @@
|
||||
|
||||
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;
|
||||
if(!hasContainer)
|
||||
throw coreutils::Exception("ifrow tag must have a container.");
|
||||
if(!global.sessionExists(variables["sessionid"]))
|
||||
throw coreutils::Exception("sessionid does not exist.");
|
||||
if(global.getSession(variables["sessionid"])->hasRow())
|
||||
processContainer(container);
|
||||
processContainer(container);
|
||||
else
|
||||
processContainer(container2);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user