## ELSEIF_THEN - Conditional execution of operations (Scripting operation)

(11/16/11)

PURPOSE

Allow conditional execution of sections of the SPIDER operation stream, depending on the logical value of an expression. Modeled after the 'FORTRAN IF...ELSEIF...ELSE...ENDIF' syntax.   Example.

 IF_THEN [Conditional execution of operations (Scripting operation)] ELSE [Conditional execution of operations (Scripting operation)]

USAGE

.OPERATION: IF( <EXP> <LC> <EXP> ) THEN
~~~~~~~
~~~~~~~
ELSEIF( <EXP> <LC> <EXP> ) THEN
~~~~~~~
~~~~~~~
ENDIF

Where:

1. <EXP> is an expression
2. <R> is a register variable.
3. <LC> is a logical comparator. The following comparators are allowed:
4. Comparator Alternate Comparision
.EQ. == Equal to
.NE. /= Not equal to
.GT. > Greater than
.GE. >= Greater than or equal to
.LT. < Less than
.LE. <= Less than or equal to

NOTES

1. EXAMPLE:
IF ([ysize] .LT. 15) THEN
AC
input001
output001
ELSEIF ([ysize] .LT. 150) THEN
AC
input001
output002
ELSE
AC
input001
output003
ENDIF

2. Nesting of: IF_THEN..ELSE...ENDIF is limited to MAXPRC levels. See: 'CMLIMIT.INC for current value of MAXPRC.

3. For every 'IF_THEN' there must be a closing ENDIF!

4. There is NO '.AND.' comparator.

5. This operation available in SPIDER release 15.++.

6. Implemented by: A. Leith

SUBROUTINES

LOGIFQ

CALLER

SPIDER
{"ft_lang_label":"__label__en","ft_lang_prob":0.70513266,"math_prob":0.9506713,"size":341,"snap":"2021-31-2021-39","text_gpt3_token_len":99,"char_repetition_ratio":0.16023739,"word_repetition_ratio":0.08695652,"special_character_ratio":0.31085044,"punctuation_ratio":0.22807017,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9871122,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-09-22T20:36:44Z\",\"WARC-Record-ID\":\"<urn:uuid:67dbccdd-eda2-4a8d-8771-8b3db3995cd0>\",\"Content-Length\":\"4774\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ca51b220-87fe-4d86-95c5-a06b36314fe2>\",\"WARC-Concurrent-To\":\"<urn:uuid:cfdadc65-3b47-4d42-bf45-8b933c2f40bc>\",\"WARC-IP-Address\":\"199.184.16.23\",\"WARC-Target-URI\":\"https://spider.wadsworth.org/spider_doc/spider/docs/man/elseif_then.html\",\"WARC-Payload-Digest\":\"sha1:7ANWWKYQVPJQD53O6RFF24GB5WLVPOUD\",\"WARC-Block-Digest\":\"sha1:2BBUPHLWDLKH3PKLXVOOHEU3H4TDIA4S\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-39/CC-MAIN-2021-39_segments_1631780057388.12_warc_CC-MAIN-20210922193630-20210922223630-00326.warc.gz\"}"}