Advertisement
Guest User

The If Node

a guest
Oct 4th, 2022
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | Source Code | 0 0
  1.  
  2. ZContextVar* ZIfNode::Exec(const std::vector<ZContextVar*>& params)
  3. {
  4.  
  5.     if (mIfExpr->Exec(std::vector<ZContextVar*>())->GetIntVal() >= 1)
  6.     {
  7.         mTrueCode->SetClassOwner(GetClassOwner());
  8.         mTrueCode->Exec(params);
  9.     }
  10.     else {
  11.  
  12.         if (mElseIf != nullptr) {
  13.             mElseIf->Exec(params);
  14.         }
  15.         if (mElseCode != nullptr) {
  16.  
  17.             mElseCode->Exec(params);
  18.  
  19.         }
  20.  
  21.     }
  22.  
  23.     int a = 5;
  24.  
  25.     return nullptr;
  26. }
Tags: If Node
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement