|
|
#1 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,382
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Template: Changing a boolean column
What is the syntax for changing a boolean column (Action Chains again)?
If #onkobo is currently 'Yes,' I want to change it to 'No.' But otherwise, I want to change it to 'Yes.' Code:
program:
if and(
check_yes_no('#onkobo', '', '', 1),
)
then
???
else
???
fi
Last edited by ownedbycats; 03-10-2021 at 06:50 PM. |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,528
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Return 'true', 'false', or '' as appropriate.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,382
Karma: 79699999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That works. Thank you
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help changing template for Metadata Book Jacket | jecilop | Calibre | 14 | 10-14-2018 07:27 AM |
| Help me with Custom Column template | nqk | Library Management | 3 | 09-23-2016 11:22 PM |
| Copying Template Value to a column | rszasz | Library Management | 1 | 06-15-2016 12:16 PM |
| How can I boolean OR several tags into one custom column? | bmix | Library Management | 3 | 01-09-2015 04:57 AM |
| Boolean custom column values | sengian | Library Management | 4 | 01-05-2012 06:39 PM |