MCPcopy Create free account
hub / github.com/FreeFem/FreeFem-sources / FIf

Function FIf

src/fflib/AFunction.cpp:327–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327AnyType FIf(Stack s ,Expression test,Expression i1,Expression i2,Expression )
328 { AnyType a;
329 if (GetAny<bool>((*test)(s)))
330 {
331 if(i1) a=(*i1)(s);//Add if FH oct 2010
332 }
333 else if (i2)
334 {
335 if(i2) a=(*i2)(s); //Add if FH oct 2010
336 }
337
338 return a;
339 }
340
341
342

Callers 1

lg.tab.cppFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected