:orphan: .. **************************************************************************** .. CUI .. .. The Advanced Framework for Simulation, Integration, and Modeling (AFSIM) .. .. The use, dissemination or disclosure of data in this file is subject to .. limitation or restriction. See accompanying README and LICENSE for details. .. **************************************************************************** conditional_section ------------------- .. command:: conditional_section ... end_conditional_section :block: .. parsed-literal:: conditional_section conditionals # `Conditionals Commands`_ feature_present_ ripr feature_not_present_ os:windows wsf_version_ > 1.0.0 type_present_ WSF_SCRIPT_PROCESSOR type_not_present_ WsfArray end_conditionals // Commands here are only run if the previous conditions passed end_conditional_section Defines a block which is conditionally processed by WSF. This construct allows inclusion or exclusion of simulation inputs based on present features or the wsf version. After the 'conditionals' block, any top-level WSF command may be processed. conditional_section blocks may be nested. .. command:: conditionals ... end_conditionals :block: Condition testing commands present in this block determine the inclusion of the commands that follow this block. Conditionals Commands ===================== .. command:: feature_present Tests that a feature is present. If the feature is not present, the contents of the conditional section is ignored. .. command:: feature_not_present Tests that a feature is **not** present. If the feature **is** present, the contents of the conditional section is ignored. .. command:: wsf_version Compares the WSF version to a version string delimited by periods. If the comparison fails, the conditional section is ignored operator: One of: <, <=, >, >=, = wsf-version: Version to compare against. Should be in the form 1.2.3 :: # Test that the wsf_version is greater than 1.0.0 wsf_version > 1.0.0 .. command:: type_present .. command:: type_not_present Determines if a 'type' is present. If any sensor, processor, comm, mover, fuel, filter, service or script type exists with the given name, the type is considered present. If the type is not present, the conditional section is ignored. Features ^^^^^^^^ WSF will define a number of features available depending on build type and the optional modules available in the executable. The following is base list of possible features, that may not be all inclusive: * os:windows * os:linux * addr:64-bit * addr:32-bit * os:apple * cpu:intel * build:debug * build:release * build:unknown .. include:: _conditional_section.wsf_fires.txt .. include:: _conditional_section.wsf_l16.txt .. include:: _conditional_section.wsf_nx.txt .. include:: _conditional_section.wsf_air_combat.txt .. include:: _conditional_section.wsf_annotation.txt .. include:: _conditional_section.wsf_cyber.txt .. include:: _conditional_section.wsf_multiresolution.txt .. include:: _conditional_section.engage.txt .. include:: _conditional_section.wsf_p6dof.txt .. include:: _conditional_section.wsf_sosm.txt .. include:: _conditional_section.wsf_mtt.txt .. include:: _conditional_section.wsf_oms_uci.txt .. include:: _conditional_section.wsf_ripr.txt .. include:: _conditional_section.wsf_six_dof.txt .. include:: _conditional_section.sensor_plot_lib.txt .. include:: _conditional_section.wsf_mil.txt .. include:: _conditional_section.wsf_brawler.txt .. include:: _conditional_section.wsf_iads_c2.txt