


{"id":33661,"date":"2019-03-04T09:40:53","date_gmt":"2019-03-04T09:40:53","guid":{"rendered":"\/forum\/forums\/topic\/if-statement-for-udf\/"},"modified":"2019-03-04T09:40:53","modified_gmt":"2019-03-04T09:40:53","slug":"if-statement-for-udf","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/if-statement-for-udf\/","title":{"rendered":"If-Statement for UDF"},"content":{"rendered":"<p>Hi,<\/p>\n<p><\/p>\n<p>I&acute;m trying to write an UDF for porous media which depends on time. So I have used an If-Statement, but an error occurs.<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/d652d665-7f9c-42a4-8f4c-a96d00d34316\/0cbc472c-68b1-4f14-8355-aa0600a136b0_if.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/d652d665-7f9c-42a4-8f4c-a96d00d34316\/e82c827d-f4b6-4283-a671-aa06009ecf16_err.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>Is it necessary to have an else-statement after if? If yes, what should I write for the else? that the &#8220;source&#8221; is zero?<\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/us.v-cdn.net\/6032193\/uploads\/attachments\/d652d665-7f9c-42a4-8f4c-a96d00d34316\/dfb0f6d1-05f9-47b9-9e1f-aa06009f1896_t.jpg?width=690&amp;upscale=false\" alt=\"\"><\/p>\n<p><\/p>\n<p>Regards,<\/p>\n<p><\/p>\n<p>Maxime<\/p>\n","protected":false},"template":"","class_list":["post-33661","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["5833"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0","0","0","0","0"],"_btv_view_count":["1401"],"_bbp_subscription":["237203"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["33661"],"_bbp_forum_id":["27792"],"_bbp_engagement":["22555","159144"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["79279"],"_bbp_last_active_id":["79279"],"_bbp_last_active_time":["2019-03-04 10:18:19"]},"test":"max4"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/33661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/33661\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=33661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}