![]() ![]() If the initial #if condition is preceded by // so, if param1 = true, rows below are copied as is. ![]() In this sample, we see the difference between the two ways to define conditional expression. The choice between // or //// is very important because let you choose between different actions to be executed when the condition is met: in the first case the content in the expression is simply rendered into the output files as is, while in the second a different action can be excuted, by default uncommenting removing an eventual leading //. After this marker you can add the conditional expressions. json files, the comment block starts with // or //// to the end of the line. The second expression is copied as-is because the conditional processing is turned off for that part of the file. ![]() The first expression is not emitted because it is processed, and the condition evaluated to false. In this sample, according to the value of the IndividualB2CAuth and OrganizationalAuth the appropriate service is added. In these file types you can use a preprocessor directive. NameĬommon file types that use single hash line comment syntax.ĭefault rules for file type not in this list. The conditional expression let you to include or exclude part of the file according to a specified condition, and to do this you can use the familiar conditional expressions like #if, #else, #elseif, #endif. To add conditional, or dynamic, content you can add Template Enging expressions in your source files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |