import { StepChild , ExecutableConditional } from 'src/types/ExpressionTypes' ; import toDefault from 'scripts/lib/toDefault' ; const stepToConditionalExecuted = ( e ) : StepChild < 'default' > => { if ( e . condition . shorthandNumber === 0 ) { return toDefault ( e . trueCase ) ; } else { return toDefault ( e . falseCase ) ; } } ; export default stepToConditionalExecuted ;