Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1014784 // setAndSaveIfChanged - set global variable and save it with save()

JavaX fragment (include)

static bool setAndSaveIfChanged(S var, O value) {
  if (eq(get(mc(), var), value)) false;
  setAndSave(var, value);
  true;
}

Author comment

Began life as a copy of #1009591

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014784
Snippet name: setAndSaveIfChanged - set global variable and save it with save()
Eternal ID of this version: #1014784/4
Text MD5: 14efdfb3f7e71bc0870eccef9cee81b4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-02 11:20:02
Source code size: 129 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 355 / 393
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1016577 - set_trueIfChanged