WPIntell

Source evidence

Logical values

Snippet Shortcodes · support · 2023-12-04T23:12:00+00:00

complaintsentiment
highseverity
0.85relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
chelminski unresolved
Possibility to use logical values. For example: __________________ If the returned value (from another query) is greater than -1, show X [sv slug=”logic” rule=”>-1″ true=”X” false=”Illegal value”] [sv slug=”sc-db-value-by-id” table=”money_balance” column=”value” column-to-search=”name” key=”chelminski” key-format=”%d” message-not-found=”none”] [/sv slug=”logic”] __________________ If the returned value (from another query) equals “moderator” then show X [sv slug=”logic” rule=”equal=moderator” true=”X” false=”Y”] [sv slug=”sc-db-value-by-id” table=”perms_primary_group” column=”group” column-to-search=”name” key=”chelminski” key-format=”%s” message-not-found=”none”] [/sv slug=”logic”] __________________ If the returned value (from another query) starts with “goo” then show X [sv slug=”logic” rule=”start=goo” true=”X” false=”Y”] [another sample shortcode] [/sv slug=”logic”] __________________ If the returned value (from another query) endswith “gle” then show X [sv slug=”logic” rule=”end=gle” true=”X” false=”Y”] [another sample shortcode] [/sv slug=”logic”] Where in the future I would like it to be possible, for example, to insert another shortcode in addition to plain text instead of X. If possible then logical values a bit like in Excel with support for shortcodes stuffed everywhere 😅😅 E.g. check if [shortcode]=”test” then show “text”, if not then: check if [shortcode]=”admin” then show “text”, if not then: check if [shortcode]=”moderator” then show “text”, if not then: check if [shortcode]=”beta_tester” then show “text”, if not then: check if [shortcode]=”user” then show “text”, if not then: show “LOG IN!” In the future, it can be expanded with many other elements, such as: Whether it contains text Does it have the right number of letters? Value comparison, whether one value equals another (e.g. 2 shortcodes) Others that don’t come to mind right now Would it be possible to implement something like this? Ah funny you say that, I have been thinking of adding something like this. I do currently have this in my Weight Tracker plugin (well, to a more limited degree): https://docs.yeken.uk/shortcodes/wt-if.html

Comments

1 shown
YeKen 2023-12-06T09:57:00+00:00

Ah funny you say that, I have been thinking of adding something like this. I do currently have this in my Weight Tracker plugin (well, to a more limited degree): https://docs.yeken.uk/shortcodes/wt-if.html